1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 03:12:34 +01:00

utils/types: toggle_set: add "~~" semantics

Add support for "~~" special value that indicates that, when merging
into another set, all values from that set should in fact be dropped.
Apart from the unique merge semantics, "~~" just like any other "~"
value.
This commit is contained in:
sergei Trofimov
2018-04-27 14:10:50 +01:00
committed by Marc Bonnici
parent 9093477f1b
commit aacba47f9a
4 changed files with 10 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ class RunCommand(Command):
self.logger.debug('Version: {}'.format(get_wa_version()))
self.logger.debug('Command Line: {}'.format(' '.join(sys.argv)))
disabled_augmentations = toggle_set(["~{}".format(i)
disabled_augmentations = toggle_set([i != '~~' and "~{}".format(i) or 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)