Remind myself that dry-run doesn't work with the extract results code
authorDiane Trout <diane@caltech.edu>
Fri, 24 Sep 2010 22:34:15 +0000 (22:34 +0000)
committerDiane Trout <diane@caltech.edu>
Fri, 24 Sep 2010 22:34:15 +0000 (22:34 +0000)
scripts/runfolder

index 76b5dd816b8cfa37a9ff6082dcee312440e6689c..145fd7a5f1625e0d860841ccb2cf52a4a84bbfe5 100644 (file)
@@ -121,7 +121,12 @@ def main(cmdlist=None):
             runfolder.extract_run_parameters(runs)
             command_run = True
         if opt.extract_results:
-            runfolder.extract_results(runs, opt.output_dir, opt.site, opt.max_jobs)
+            if opt.dry_run:
+                parser.error("Dry-run is not supported for extract-results")
+            runfolder.extract_results(runs, 
+                                      opt.output_dir, 
+                                      opt.site, 
+                                      opt.max_jobs)
             command_run = True
         if opt.clean:
             runfolder.clean_runs(runs, opt.dry_run)