mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
fixed run_test script
This commit is contained in:
parent
240e4044aa
commit
57b52798e2
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user