diff tests/test-run-tests.t @ 22361:eb6adf750954

run-tests: make --interactive work with --view
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 31 Aug 2014 12:22:44 +0200
parents 102f0e926668
children c42e69268f5b
line wrap: on
line diff
--- a/tests/test-run-tests.t	Sun Aug 31 11:11:42 2014 +0200
+++ b/tests/test-run-tests.t	Sun Aug 31 12:22:44 2014 +0200
@@ -251,6 +251,18 @@
   This is a noop statement so that
   this test is still more bytes than success.
 
+Interactive with custom view
+
+  $ echo 'n' | $TESTDIR/run-tests.py --with-hg=`which hg` -i --view echo
+  $TESTTMP/test-failure.t $TESTTMP/test-failure.t.err
+  Accept this change? [n]* (glob)
+  ERROR: test-failure.t output changed
+  !.
+  Failed test-failure.t: output changed
+  # Ran 2 tests, 0 skipped, 0 warned, 1 failed.
+  python hash seed: * (glob)
+  [1]
+
 View the fix
 
   $ echo 'y' | $TESTDIR/run-tests.py --with-hg=`which hg` --view echo