Fix bug in run_regression re: scoping of variables
@@ -174,7 +174,6 @@ def evaluate_and_verify(yaml_data, dry_run):
def run_search(cmd):
logger.info(' '.join(cmd))
- if not args.dry_run:
call(' '.join(cmd), shell=True)
@@ -225,6 +224,10 @@ if __name__ == '__main__':
if args.search:
logger.info('='*10 + ' Ranking ' + '='*10)
search_cmds = construct_search_commands(yaml_data)
+ if args.dry_run:
+ for cmd in search_cmds:
+ logger.info(' '.join(cmd))
+ else:
p = Pool(args.search_pool)
p.map(run_search, search_cmds)
