diff tests/run-tests.py @ 5685:57d29a45ffbc

Use skipped: instead of hghave: for skipping tests, use this in test-merge-types
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 21 Dec 2007 21:50:19 +0100
parents 453acf64f71f
children 0145f9afb0e7
line wrap: on
line diff
--- a/tests/run-tests.py	Fri Dec 21 12:14:35 2007 +0100
+++ b/tests/run-tests.py	Fri Dec 21 21:50:19 2007 +0100
@@ -19,8 +19,9 @@
 import tempfile
 import time
 
-# hghave reserved exit code to skip test
+# reserved exit code to skip test (used by hghave)
 SKIPPED_STATUS = 80
+SKIPPED_PREFIX = 'skipped: '
 
 required_tools = ["python", "diff", "grep", "unzip", "gunzip", "bunzip2", "sed"]
 
@@ -92,10 +93,10 @@
     '''Extract missing/unknown features log lines as a list'''
     missing = []
     for line in lines:
-        if not line.startswith('hghave: '):
+        if not line.startswith(SKIPPED_PREFIX):
             continue
         line = line.splitlines()[0]
-        missing.append(line[8:])
+        missing.append(line[len(SKIPPED_PREFIX):])
 
     return missing