fixed run_test script

This commit is contained in:
Wenzel Jakob 2016-02-20 21:19:30 +01:00
parent 240e4044aa
commit 57b52798e2

View File

@ -47,10 +47,11 @@ if path != '':
os.chdir(path)
if len(sys.argv) < 2:
print("Syntax: %s <example> [--relaxed]" % sys.argv[0])
print("Syntax: %s [--relaxed] <test name>" % sys.argv[0])
exit(0)
if len(sys.argv) == 3 and sys.argv[2] == '--relaxed':
if len(sys.argv) == 3 and sys.argv[1] == '--relaxed':
del sys.argv[1]
relaxed = True
name = sys.argv[1]