aboutsummaryrefslogtreecommitdiff
path: root/wa/commands/run.py
diff options
context:
space:
mode:
authorSergei Trofimov <sergei.trofimov@arm.com>2017-11-03 16:24:15 +0000
committersetrofim <setrofim@gmail.com>2017-11-03 17:33:32 +0000
commit00d1d3d31850ec50687a5769e23eaa5cb2fbfd5d (patch)
tree2918b6c6051340da8db08df805e36964ef6ba69e /wa/commands/run.py
parent836ba1505fe48e00daa395710afce64dd739d84b (diff)
commands/run: update "--disable" option
--diable can now be used to disable both intruments and result_processors from the command line (overriding configuration files). Rename variable names to reflect this.
Diffstat (limited to 'wa/commands/run.py')
-rw-r--r--wa/commands/run.py25
1 files changed, 13 insertions, 12 deletions
diff --git a/wa/commands/run.py b/wa/commands/run.py
index 8ab6dd01..1fcc9944 100644
--- a/wa/commands/run.py
+++ b/wa/commands/run.py
@@ -72,17 +72,18 @@ class RunCommand(Command):
workloads in the agenda will be ignored. This
option may be used to specify multiple IDs.
""")
- self.parser.add_argument('--disable', action='append', dest='instruments_to_disable',
+ self.parser.add_argument('--disable', action='append', dest='augmentations_to_disable',
default=[],
metavar='INSTRUMENT', help="""
- Specify an instrument to disable from the
- command line. This equivalent to adding
- "~{metavar}" to the instrumentation list in
- the agenda. This can be used to temporarily
- disable a troublesome instrument for a
- particular run without introducing permanent
- change to the config (which one might then
- forget to revert). This option may be
+ Specify an instrument or result processor to
+ disable from the command line. This equivalent
+ to adding "~{metavar}" to the instrumentation
+ list in the agenda. This can be used to
+ temporarily disable a troublesome instrument
+ for a particular run without introducing
+ permanent change to the config (which one
+ might then forget to revert). This option may
+ be
specified multiple times.
""")
@@ -93,9 +94,9 @@ class RunCommand(Command):
self.logger.debug('Version: {}'.format(get_wa_version()))
self.logger.debug('Command Line: {}'.format(' '.join(sys.argv)))
- disabled_instruments = toggle_set(["~{}".format(i)
- for i in args.instruments_to_disable])
- config.jobs_config.disable_instruments(disabled_instruments)
+ disabled_augmentations = toggle_set(["~{}".format(i)
+ for i in args.augmentations_to_disable])
+ config.jobs_config.disable_augmentations(disabled_augmentations)
config.jobs_config.only_run_ids(args.only_run_ids)
parser = AgendaParser()