mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-11-17 08:41:03 +00:00
bwruntests: Remove dead variables
This commit is contained in:
parent
810d596ade
commit
cea366dc66
1 changed files with 2 additions and 8 deletions
|
|
@ -197,10 +197,7 @@ the junit_xml library which is not installed.""",
|
||||||
print("""Warning: Displaying results requires the PrettyTable
|
print("""Warning: Displaying results requires the PrettyTable
|
||||||
library which is not installed""")
|
library which is not installed""")
|
||||||
|
|
||||||
testnames = []
|
tests = [] # list of tuple (testname, working dir, command)
|
||||||
shellcmds = []
|
|
||||||
cwds = []
|
|
||||||
tests = []
|
|
||||||
|
|
||||||
# load tests (yaml or command list)
|
# load tests (yaml or command list)
|
||||||
if args.yaml:
|
if args.yaml:
|
||||||
|
|
@ -217,9 +214,6 @@ the pyyaml library which is not installed.""",
|
||||||
for testname, insn in testv.items():
|
for testname, insn in testv.items():
|
||||||
cmd = shlex.split(insn['command'])
|
cmd = shlex.split(insn['command'])
|
||||||
cwd = insn['path']
|
cwd = insn['path']
|
||||||
testnames.append(testsetname + ':' + testname)
|
|
||||||
shellcmds.append(cmd)
|
|
||||||
cwds.append(cwd)
|
|
||||||
tests.append((testsetname + ':' + testname, cwd, cmd))
|
tests.append((testsetname + ':' + testname, cwd, cmd))
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
pp.pprint(tests)
|
pp.pprint(tests)
|
||||||
|
|
@ -278,7 +272,7 @@ the pyyaml library which is not installed.""",
|
||||||
|
|
||||||
# print summary of test results
|
# print summary of test results
|
||||||
if not(args.disable_results_pp):
|
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)
|
testfailcount = sum(1 for p in procresults if p.returncode != 0)
|
||||||
testpassedcount = testcount - testfailcount
|
testpassedcount = testcount - testfailcount
|
||||||
resulttable = PrettyTable(['test', 'config', 'time', 'passed/total'])
|
resulttable = PrettyTable(['test', 'config', 'time', 'passed/total'])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue