changeset 26422:41436beaf463

run-tests: report paths saved by --keep-tmpdir
author timeless@mozdev.org
date Wed, 30 Sep 2015 16:01:19 -0400
parents 4b0fc75f9403
children c93f91c1db1c
files tests/run-tests.py tests/test-run-tests.t
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Wed Sep 30 15:43:49 2015 -0500
+++ b/tests/run-tests.py	Wed Sep 30 16:01:19 2015 -0400
@@ -665,7 +665,10 @@
             killdaemons(entry)
         self._daemonpids = []
 
-        if not self._keeptmpdir:
+        if self._keeptmpdir:
+            log('\nKeeping testtmp dir: %s\nKeeping threadtmp dir: %s' %
+                (self._testtmp, self._threadtmp))
+        else:
             shutil.rmtree(self._testtmp, True)
             shutil.rmtree(self._threadtmp, True)
 
--- a/tests/test-run-tests.t	Wed Sep 30 15:43:49 2015 -0500
+++ b/tests/test-run-tests.t	Wed Sep 30 16:01:19 2015 -0400
@@ -393,6 +393,14 @@
   python hash seed: * (glob)
   [1]
 
+test --tmpdir support
+  $ run-tests.py --with-hg=`which hg` --tmpdir=$TESTTMP/keep test-success.t
+  
+  Keeping testtmp dir: $TESTTMP/keep/child1/test-success.t
+  Keeping threadtmp dir: $TESTTMP/keep/child1 
+  .
+  # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
+
 test for --time
 ==================