[test-suite] r261400 - lit: Fix typo in error handling code
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 19 19:21:05 PST 2016
Author: matze
Date: Fri Feb 19 21:21:05 2016
New Revision: 261400
URL: http://llvm.org/viewvc/llvm-project?rev=261400&view=rev
Log:
lit: Fix typo in error handling code
Modified:
test-suite/trunk/litsupport/testscript.py
Modified: test-suite/trunk/litsupport/testscript.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/testscript.py?rev=261400&r1=261399&r2=261400&view=diff
==============================================================================
--- test-suite/trunk/litsupport/testscript.py (original)
+++ test-suite/trunk/litsupport/testscript.py Fri Feb 19 21:21:05 2016
@@ -35,12 +35,12 @@ def parse(filename):
# Verify the script contains a run line.
if runscript == []:
- return ValueError("Test has no RUN: line!")
+ raise ValueError("Test has no RUN: line!")
# Check for unterminated run lines.
for script in runscript, verifyscript:
if script and script[-1][-1] == '\\':
- return ValueError("Test has unterminated RUN/VERIFY lines " +
- "(ending with '\\')")
+ raise ValueError("Test has unterminated RUN/VERIFY lines " +
+ "(ending with '\\')")
return runscript, verifyscript
More information about the llvm-commits
mailing list