[test-suite] r264100 - lit: Fix for pep8 style, fix whitespace; NFC
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 22 14:25:40 PDT 2016
Author: matze
Date: Tue Mar 22 16:25:39 2016
New Revision: 264100
URL: http://llvm.org/viewvc/llvm-project?rev=264100&view=rev
Log:
lit: Fix for pep8 style, fix whitespace; NFC
Modified:
test-suite/trunk/litsupport/perf.py
test-suite/trunk/litsupport/shellcommand.py
test-suite/trunk/litsupport/test.py
test-suite/trunk/litsupport/testplan.py
test-suite/trunk/litsupport/timeit.py
test-suite/trunk/tools/timeit.sh
Modified: test-suite/trunk/litsupport/perf.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/perf.py?rev=264100&r1=264099&r2=264100&view=diff
==============================================================================
--- test-suite/trunk/litsupport/perf.py (original)
+++ test-suite/trunk/litsupport/perf.py Tue Mar 22 16:25:39 2016
@@ -2,6 +2,7 @@ import shellcommand
import testplan
import run_under
+
def mutateCommandLine(context, commandline):
profilefile = context.tmpBase + ".perf_data"
cmd = shellcommand.parse(commandline)
Modified: test-suite/trunk/litsupport/shellcommand.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/shellcommand.py?rev=264100&r1=264099&r2=264100&view=diff
==============================================================================
--- test-suite/trunk/litsupport/shellcommand.py (original)
+++ test-suite/trunk/litsupport/shellcommand.py Tue Mar 22 16:25:39 2016
@@ -83,7 +83,7 @@ def parse(commandline):
if first_word:
# Is it an environment variable assignment?
- assignment=re.match('([A-Za-z_][A-Za-z_0-9]*)=(.*)', token)
+ assignment = re.match('([A-Za-z_][A-Za-z_0-9]*)=(.*)', token)
if assignment:
result.envvars[assignment.group(1)] = assignment.group(2)
continue
Modified: test-suite/trunk/litsupport/test.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/test.py?rev=264100&r1=264099&r2=264100&view=diff
==============================================================================
--- test-suite/trunk/litsupport/test.py (original)
+++ test-suite/trunk/litsupport/test.py Tue Mar 22 16:25:39 2016
@@ -39,7 +39,6 @@ class TestContext:
self.tmpBase = tmpBase
-
class TestSuiteTest(FileBasedTest):
def __init__(self):
super(TestSuiteTest, self).__init__()
@@ -60,9 +59,10 @@ class TestSuiteTest(FileBasedTest):
substitutions = getDefaultSubstitutions(test, tmpDir, tmpBase)
substitutions += [('%o', outfile)]
plan.runscript = applySubstitutions(plan.runscript, substitutions)
- plan.verifyscript = applySubstitutions(plan.verifyscript, substitutions)
+ plan.verifyscript = applySubstitutions(plan.verifyscript,
+ substitutions)
plan.metricscripts = {k: applySubstitutions(v, substitutions)
- for k, v in plan.metricscripts.items()}
+ for k, v in plan.metricscripts.items()}
context = TestContext(test, litConfig, plan.runscript,
plan.verifyscript, tmpDir, tmpBase)
context.executable = shellcommand.getMainExecutable(context)
Modified: test-suite/trunk/litsupport/testplan.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/testplan.py?rev=264100&r1=264099&r2=264100&view=diff
==============================================================================
--- test-suite/trunk/litsupport/testplan.py (original)
+++ test-suite/trunk/litsupport/testplan.py Tue Mar 22 16:25:39 2016
@@ -153,7 +153,7 @@ def executePlan(context, plan):
metric, out)
# Execute additional profile gathering actions setup by testing modules.
- _, _, exitCode, _ = executeScript(context, plan.profilescript)
+ _, _, exitCode, _ = executeScript(context, plan.profilescript)
if exitCode != 0:
logging.warning("Profile script '%s' failed", plan.profilescript)
Modified: test-suite/trunk/litsupport/timeit.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/timeit.py?rev=264100&r1=264099&r2=264100&view=diff
==============================================================================
--- test-suite/trunk/litsupport/timeit.py (original)
+++ test-suite/trunk/litsupport/timeit.py Tue Mar 22 16:25:39 2016
@@ -57,7 +57,7 @@ def _collectTime(context, timefiles, met
time = 0.0
for timefile in timefiles:
time += getUserTime(timefile)
- return { metric_name: lit.Test.toMetricValue(time) }
+ return {metric_name: lit.Test.toMetricValue(time)}
def mutatePlan(context, plan):
Modified: test-suite/trunk/tools/timeit.sh
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/tools/timeit.sh?rev=264100&r1=264099&r2=264100&view=diff
==============================================================================
--- test-suite/trunk/tools/timeit.sh (original)
+++ test-suite/trunk/tools/timeit.sh Tue Mar 22 16:25:39 2016
@@ -22,9 +22,9 @@ while [[ $1 = -* ]]; do
elif [ $1 = "--chdir" ]; then
cd $2
elif [ $1 = "--append-exitstatus" ]; then
- APPEND_STATUS=1
- shift 1
- continue
+ APPEND_STATUS=1
+ shift 1
+ continue
fi
shift 2
done
More information about the llvm-commits
mailing list