[test-suite] r288863 - Fix LIT test-suite breakage caused by r288694

Eric Fiselier via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 15:25:39 PST 2016


Author: ericwf
Date: Tue Dec  6 17:25:38 2016
New Revision: 288863

URL: http://llvm.org/viewvc/llvm-project?rev=288863&view=rev
Log:
Fix LIT test-suite breakage caused by r288694

Modified:
    test-suite/trunk/litsupport/testfile.py

Modified: test-suite/trunk/litsupport/testfile.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/testfile.py?rev=288863&r1=288862&r2=288863&view=diff
==============================================================================
--- test-suite/trunk/litsupport/testfile.py (original)
+++ test-suite/trunk/litsupport/testfile.py Tue Dec  6 17:25:38 2016
@@ -30,13 +30,13 @@ def parse(context, filename):
     keywords = ['PREPARE:', 'RUN:', 'VERIFY:', 'METRIC:']
     for line_number, command_type, ln in \
             parseIntegratedTestScriptCommands(filename, keywords):
-        if command_type == 'PREPARE':
+        if command_type == 'PREPARE:':
             _parseShellCommand(preparescript, ln)
-        elif command_type == 'RUN':
+        elif command_type == 'RUN:':
             _parseShellCommand(runscript, ln)
-        elif command_type == 'VERIFY':
+        elif command_type == 'VERIFY:':
             _parseShellCommand(verifyscript, ln)
-        elif command_type == 'METRIC':
+        elif command_type == 'METRIC:':
             metric, ln = ln.split(':', 1)
             metricscript = metricscripts.setdefault(metric.strip(), list())
             _parseShellCommand(metricscript, ln)




More information about the llvm-commits mailing list