run-tests: report paths saved by --keep-tmpdir
authortimeless@mozdev.org
Wed, 30 Sep 2015 16:01:19 -0400
changeset 26422 41436beaf463
parent 26421 4b0fc75f9403
child 26423 c93f91c1db1c
run-tests: report paths saved by --keep-tmpdir
tests/run-tests.py
tests/test-run-tests.t
--- 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
 ==================