From 28c0d150cc06c81a8f4d04b45aa07eb88e764def Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 17 Oct 2020 15:04:36 -0700 Subject: [PATCH] remove unnecessary 'global' statements in rtest These variables were either unused in the contained function or only read from. --- rtest/rtest.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/rtest/rtest.py b/rtest/rtest.py index bac5bccf1..560ec8e70 100755 --- a/rtest/rtest.py +++ b/rtest/rtest.py @@ -104,9 +104,7 @@ def readTest(): # Compare old and new output and report if different. # Args: testname index fmt def doDiff(OUTFILE, OUTDIR, REFDIR, testname, subtest_index, fmt): - global OUTHTML global DIFF_CNT - global VERBOSE FILE1 = os.path.join(OUTDIR, OUTFILE) FILE2 = os.path.join(REFDIR, OUTFILE) F = fmt.split(':')[0] @@ -201,10 +199,8 @@ def genOutname(name, alg, fmt): return OUTFILE def doTest(TEST): - global GENERATE global TOT_CNT global CRASH_CNT - global DIFF_CNT global TESTTYPES TESTNAME = TEST['TESTNAME'] SUBTESTS = TEST['SUBTESTS'] -- 2.50.1