tests/run-tests.py
changeset 5685 57d29a45ffbc
parent 5524 453acf64f71f
child 5760 0145f9afb0e7
--- 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