tests: show skip reason instead of "irrelevant" with unified tests, too stable
authorThomas Arendsen Hein <thomas@intevation.de>
Mon, 27 Sep 2010 22:49:30 +0200
branchstable
changeset 823 ab2ba4e79bed
parent 822 842e2c76e64b
child 824 6d3f8caef3b3
tests: show skip reason instead of "irrelevant" with unified tests, too parsehghaveoutput expects just the test output, not the merged test/output, so for skipped unified tests e.g.: Skipped test-convert-darcs.t: missing feature: irrelevant was shown instead of: Skipped test-convert-darcs.t: missing feature: darcs client [ original upstream description ]
tests/run-tests.py
--- a/tests/run-tests.py	Sun Sep 26 22:22:59 2010 +0200
+++ b/tests/run-tests.py	Mon Sep 27 22:49:30 2010 +0200
@@ -499,6 +499,9 @@
         cmd = '/bin/sh "%s"' % name
         vlog("# Running", cmd)
         exitcode, output = run(cmd, options)
+        # do not merge output if skipped, return hghave message instead
+        if exitcode == SKIPPED_STATUS:
+            return exitcode, output
     finally:
         os.remove(name)