aboutsummaryrefslogtreecommitdiffstats
path: root/run-tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run-tests.py')
-rwxr-xr-xrun-tests.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/run-tests.py b/run-tests.py
index a2e6d13..7756e4d 100755
--- a/run-tests.py
+++ b/run-tests.py
@@ -3,12 +3,10 @@
import tests
import os, sys, getopt
-opts, args = getopt.getopt(sys.argv[1:], '')
-
-if args and args[0] == "update":
- if len(args) > 1:
- config = tests.get_config(os.path.dirname(args[1]))
- root, ext = os.path.splitext(args[1])
+if len(sys.argv) > 1 and sys.argv[1] == "update":
+ if len(sys.argv) > 2:
+ config = tests.get_config(os.path.dirname(sys.argv[2]))
+ root, ext = os.path.splitext(sys.argv[2])
if ext == config.get(tests.get_section(os.path.basename(root), config), 'input_ext'):
tests.generate(root, config)
else: