Commit 84cf1feb authored by Jeff Muizelaar's avatar Jeff Muizelaar Committed by Nicolai Hähnle

piglit: Fix calls to exit()

Fix calls to exit() to use sys.exit().

'exit' is a string. We want to use sys.exit instead.
Signed-off-by: Nicolai Hähnle's avatarNicolai Haehnle <nhaehnle@gmail.com>
parent 5a2d4468
......@@ -58,7 +58,7 @@ Example:
the substring 'tex'
"""
print USAGE % {'progName': sys.argv[0]}
exit(1)
sys.exit(1)
def main():
env = core.Environment()
......
......@@ -373,7 +373,7 @@ Example:
%(progName)s summary/mysum results/all.results
"""
print USAGE % {'progName': sys.argv[0]}
exit(1)
sys.exit(1)
def main():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment