changeset 21734:34e0bd895afc

test-run-tests.t: test running a passing test
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 30 May 2014 12:10:19 -0700
parents 9ad11d5bcc2f
children 5ee547fdb0be
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 Jun 10 14:32:52 2014 -0700
+++ b/tests/test-run-tests.t	Fri May 30 12:10:19 2014 -0700
@@ -6,3 +6,15 @@
   $ $TESTDIR/run-tests.py
   
   # Ran 0 tests, 0 skipped, 0 warned, 0 failed.
+
+a succesful test
+=======================
+
+  $ cat > test-success.t << EOF
+  >   $ echo babar
+  >   babar
+  > EOF
+
+  $ $TESTDIR/run-tests.py --with-hg=`which hg`
+  .
+  # Ran 1 tests, 0 skipped, 0 warned, 0 failed.