diff options
author | Alexandre Rames <alexandre.rames@linaro.org> | 2016-07-28 16:42:55 +0100 |
---|---|---|
committer | Alexandre Rames <alexandre.rames@linaro.org> | 2016-08-03 09:41:37 +0100 |
commit | 66c160eb668ed925b6842d622872ef11867fd034 (patch) | |
tree | c001e67d2b5020b268a749491039d7d661def81e | |
parent | 7940a49aceccb45be1d1fab4c4be2e59bd1d9acf (diff) | |
download | art-testing-66c160eb668ed925b6842d622872ef11867fd034.tar.gz |
Make `--output-for-linaro-automation` imply `--significant-changes`.
Change-Id: I39b3744a7f29c5db522f703d43d4614feb984cba
-rwxr-xr-x | compare.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -58,8 +58,15 @@ def BuildOptions(): specified are discarded. The default is 0.05, corresponding to 95%% certainty of rejecting the null hypothesis.''') + class LinaroAutomationAction(argparse.Action): + def __init__(self, option_strings, **kwargs): + super(LinaroAutomationAction, self).__init__(option_strings, **kwargs) + def __call__(self, parser, namespace, values, option_string=None): + setattr(namespace, 'significant_changes', True) parser.add_argument('--output-for-linaro-automation', - action='store_true', default=False, + action=LinaroAutomationAction, + default=False, + nargs=0, help='Print results formatted for Linaro automation.') return parser.parse_args() |