summaryrefslogtreecommitdiffstats
path: root/tests/test-runner/bin
diff options
context:
space:
mode:
authorGiuseppe Di Natale <[email protected]>2017-10-23 14:01:43 -0700
committerBrian Behlendorf <[email protected]>2017-10-23 14:01:43 -0700
commit63e5e960bad6f6c7d8eeb8273988ec7fd10f0a60 (patch)
tree0326e205878b59ed007371b41fae1a7ca29ac566 /tests/test-runner/bin
parentd9daa7abcf04f75ba013ec954c4f2d4854ba1cbc (diff)
Correct flake8 errors after STYLE builder update
Fix new flake8 errors related to bare excepts and ambiguous variable names due to a STYLE builder update. Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Giuseppe Di Natale <[email protected]> Closes #6776
Diffstat (limited to 'tests/test-runner/bin')
-rwxr-xr-xtests/test-runner/bin/test-runner.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-runner/bin/test-runner.py b/tests/test-runner/bin/test-runner.py
index 4c53257df..8ad903c24 100755
--- a/tests/test-runner/bin/test-runner.py
+++ b/tests/test-runner/bin/test-runner.py
@@ -150,7 +150,7 @@ class Cmd(object):
try:
kp = Popen(cmd)
kp.wait()
- except:
+ except Exception:
pass
def update_cmd_privs(self, cmd, user):
@@ -629,16 +629,16 @@ class TestRun(object):
base = self.outputdir
while not done:
- l = []
+ paths = []
components -= 1
for testfile in tmp_dict.keys():
uniq = '/'.join(testfile.split('/')[components:]).lstrip('/')
- if uniq not in l:
- l.append(uniq)
+ if uniq not in paths:
+ paths.append(uniq)
tmp_dict[testfile].outputdir = os.path.join(base, uniq)
else:
break
- done = total == len(l)
+ done = total == len(paths)
def setup_logging(self, options):
"""