changeset 22108:ccae572c5d09

test-run-tests: test --view
author Matt Mackall <mpm@selenic.com>
date Tue, 12 Aug 2014 00:40:24 -0500
parents 3b5cf39ffcc4
children feab93a24e81
files tests/test-run-tests.t
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-run-tests.t	Tue Aug 12 00:33:48 2014 -0500
+++ b/tests/test-run-tests.t	Tue Aug 12 00:40:24 2014 -0500
@@ -251,6 +251,18 @@
   This is a noop statement so that
   this test is still more bytes than success.
 
+View the fix
+
+  $ echo 'y' | $TESTDIR/run-tests.py --with-hg=`which hg` --view echo
+  $TESTTMP/test-failure.t $TESTTMP/test-failure.t.err
+  
+  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]
+
 Accept the fix
 
   $ echo 'y' | $TESTDIR/run-tests.py --with-hg=`which hg` -i