From 0dcf3f4d71e4e694e4b16f55a92cbfb066ed99b3 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 26 Feb 2014 16:41:43 -0600 Subject: [PATCH] --dead implies --refresh Signed-off-by: Zack Cerza --- scripts/report.py | 3 ++- teuthology/report.py | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/report.py b/scripts/report.py index 6ce2c75fba..d2b39d3c5a 100644 --- a/scripts/report.py +++ b/scripts/report.py @@ -31,7 +31,8 @@ optional arguments: last successful submission in a file called 'last_successful_run'. Pass this flag to disable that behavior. - -D, --dead Mark all given jobs (or entire runs) with status 'dead' + -D, --dead Mark all given jobs (or entire runs) with status + 'dead'. Implies --refresh. -v, --verbose be more verbose """.format(archive_base=teuthology.config.config.archive_base) diff --git a/teuthology/report.py b/teuthology/report.py index bfa0b9aa01..367adc1d4c 100644 --- a/teuthology/report.py +++ b/teuthology/report.py @@ -18,6 +18,10 @@ log = logging.getLogger(__name__) def main(args): + run = args['--run'] + job = args['--job'] + dead = args['--dead'] + refresh = dead or args['--refresh'] server = args['--server'] if server: config.results_server = server @@ -26,11 +30,7 @@ def main(args): archive_base = os.path.abspath(os.path.expanduser(args['--archive'])) save = not args['--no-save'] - reporter = ResultsReporter(archive_base, save=save, - refresh=args['--refresh']) - run = args['--run'] - job = args['--job'] - dead = args['--dead'] + reporter = ResultsReporter(archive_base, save=save, refresh=refresh) if dead and not job: for run_name in run: reporter.report_run(run[0], dead=True) -- 2.39.5