diff options
author | Waylan Limberg <waylan@gmail.com> | 2013-03-15 13:50:00 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2013-03-15 13:50:00 -0400 |
commit | 3d14596042c75b80994f636bcb7666e76bfeca85 (patch) | |
tree | 2910c126f21178f1b14390f08f4c94e8a59f2d70 | |
parent | ea1dd174db115c0275e85d4bf93a88cf25bda673 (diff) | |
download | markdown-3d14596042c75b80994f636bcb7666e76bfeca85.tar.gz markdown-3d14596042c75b80994f636bcb7666e76bfeca85.tar.bz2 markdown-3d14596042c75b80994f636bcb7666e76bfeca85.zip |
Allow run-tests script options and args to be passed through to nose.
-rwxr-xr-x | run-tests.py | 10 |
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: |