]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
--dead implies --refresh
authorZack Cerza <zack@cerza.org>
Wed, 26 Feb 2014 22:41:43 +0000 (16:41 -0600)
committerZack Cerza <zack@cerza.org>
Wed, 26 Feb 2014 22:41:43 +0000 (16:41 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
scripts/report.py
teuthology/report.py

index 6ce2c75fbaa049f7200c95364006dc836b349609..d2b39d3c5a96f2f079b3129ca3fd20b48ee995d1 100644 (file)
@@ -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)
 
index bfa0b9aa013553606a1d6561cb6ef46a040ea9b1..367adc1d4c7aabd6b7e38d9e8e3e080099aaa804 100644 (file)
@@ -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)