[test-suite] r335463 - [test-suite] Allow --use-perf=profile and --run-under to work together
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 25 05:58:18 PDT 2018
Author: psmith
Date: Mon Jun 25 05:58:17 2018
New Revision: 335463
URL: http://llvm.org/viewvc/llvm-project?rev=335463&view=rev
Log:
[test-suite] Allow --use-perf=profile and --run-under to work together
When the command line mutation for adding perf commands runs it first
tries to find the results of the run-under command line mutation. In a
recent refactoring the run-under mutateCommandLine function was renamed
to _mutateCommandLine which resulted in a 'module' object has no attribute
error.
This change renames _mutateCommandLine back to mutateCommandLine as it
isn't private to the run-under command.
Modified:
test-suite/trunk/litsupport/modules/run_under.py
Modified: test-suite/trunk/litsupport/modules/run_under.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/modules/run_under.py?rev=335463&r1=335462&r2=335463&view=diff
==============================================================================
--- test-suite/trunk/litsupport/modules/run_under.py (original)
+++ test-suite/trunk/litsupport/modules/run_under.py Mon Jun 25 05:58:17 2018
@@ -4,7 +4,7 @@ from litsupport import shellcommand
from litsupport import testplan
-def _mutateCommandLine(context, commandline):
+def mutateCommandLine(context, commandline):
cmd = shellcommand.parse(commandline)
run_under_cmd = shellcommand.parse(context.config.run_under)
@@ -24,4 +24,4 @@ def mutatePlan(context, plan):
run_under = context.config.run_under
if run_under:
plan.runscript = testplan.mutateScript(context, plan.runscript,
- _mutateCommandLine)
+ mutateCommandLine)
More information about the llvm-commits
mailing list