aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-14 03:05:48 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-15 12:23:57 +0000
commite60df6961c0a3fc6a23e61d416fce2b6e8350340 (patch)
tree172263c2e9c1806dc095ebdba586df0227da7a56
parent21235415741cfc2e39563ba8745a3697a8cd71eb (diff)
fix name of local var, to not shadow 'suite' module
This caused "UnboundLocalError: local variable 'suite' referenced before assignment". Change-Id: Ic9aa383f5cdc9818c5a21b101fb6ddea4132d9fb
-rwxr-xr-xsrc/osmo-gsm-tester.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-gsm-tester.py b/src/osmo-gsm-tester.py
index 7adb2c5..0a04708 100755
--- a/src/osmo-gsm-tester.py
+++ b/src/osmo-gsm-tester.py
@@ -67,11 +67,11 @@ created, which will collect logs and reports.
'''
import sys
+import argparse
from osmo_gsm_tester import __version__
from osmo_gsm_tester import trial, suite, log, config
def main():
- import argparse
parser = argparse.ArgumentParser(epilog=__doc__, formatter_class=argparse.RawTextHelpFormatter)
# Note: since we're using RawTextHelpFormatter to keep nicely separate
@@ -205,8 +205,8 @@ optional.''')
print('Trials failed:')
for trial_name, suites_passed, suites_failed in trials_failed:
print(' %s (%d of %d suite runs failed)' % (trial_name, len(suites_failed), len(suites_failed) + len(suites_passed)))
- for suite in suites_failed:
- print(' FAIL:', suite)
+ for suite_failed in suites_failed:
+ print(' FAIL:', suite_failed)
exit(1)
if __name__ == '__main__':