summaryrefslogtreecommitdiff
path: root/pactest/pactest.py
diff options
context:
space:
mode:
Diffstat (limited to 'pactest/pactest.py')
-rwxr-xr-xpactest/pactest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pactest/pactest.py b/pactest/pactest.py
index 77ce0af3..d2a09196 100755
--- a/pactest/pactest.py
+++ b/pactest/pactest.py
@@ -36,7 +36,8 @@ def globTests(option, opt_str, value, parser):
globlist = []
# maintain the idx so we can modify rargs
- while not parser.rargs[idx].startswith('-'):
+ while idx < len(parser.rargs) and \
+ not parser.rargs[idx].startswith('-'):
globlist += glob.glob(parser.rargs[idx])
idx += 1