From cea366dc66a9431b4138633e59798b21641e8c4d Mon Sep 17 00:00:00 2001 From: bluew Date: Fri, 17 Jan 2020 13:57:21 +0000 Subject: [PATCH] bwruntests: Remove dead variables --- bwruntests.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/bwruntests.py b/bwruntests.py index 1ca7673..9d17113 100755 --- a/bwruntests.py +++ b/bwruntests.py @@ -197,10 +197,7 @@ the junit_xml library which is not installed.""", print("""Warning: Displaying results requires the PrettyTable library which is not installed""") - testnames = [] - shellcmds = [] - cwds = [] - tests = [] + tests = [] # list of tuple (testname, working dir, command) # load tests (yaml or command list) if args.yaml: @@ -217,9 +214,6 @@ the pyyaml library which is not installed.""", for testname, insn in testv.items(): cmd = shlex.split(insn['command']) cwd = insn['path'] - testnames.append(testsetname + ':' + testname) - shellcmds.append(cmd) - cwds.append(cwd) tests.append((testsetname + ':' + testname, cwd, cmd)) if args.verbose: pp.pprint(tests) @@ -278,7 +272,7 @@ the pyyaml library which is not installed.""", # print summary of test results if not(args.disable_results_pp): - testcount = sum(1 for x in testnames) + testcount = sum(1 for x in tests) testfailcount = sum(1 for p in procresults if p.returncode != 0) testpassedcount = testcount - testfailcount resulttable = PrettyTable(['test', 'config', 'time', 'passed/total'])