aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rames <alexandre.rames@linaro.org>2016-07-28 16:42:55 +0100
committerAlexandre Rames <alexandre.rames@linaro.org>2016-08-03 09:41:37 +0100
commit66c160eb668ed925b6842d622872ef11867fd034 (patch)
treec001e67d2b5020b268a749491039d7d661def81e
parent7940a49aceccb45be1d1fab4c4be2e59bd1d9acf (diff)
downloadart-testing-66c160eb668ed925b6842d622872ef11867fd034.tar.gz
Make `--output-for-linaro-automation` imply `--significant-changes`.
Change-Id: I39b3744a7f29c5db522f703d43d4614feb984cba
-rwxr-xr-xcompare.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/compare.py b/compare.py
index b441b02..9db904d 100755
--- a/compare.py
+++ b/compare.py
@@ -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()