Commit f80946bb authored by Denis Bilenko's avatar Denis Bilenko

runall.py: fix --dry-run option to print the commands it's gonna execute

parent 7a415669
...@@ -51,6 +51,7 @@ def cmd(program): ...@@ -51,6 +51,7 @@ def cmd(program):
return res return res
def main(): def main():
global cmd
parser = OptionParser() parser = OptionParser()
parser.add_option('--skip', action='store_true', default=False, parser.add_option('--skip', action='store_true', default=False,
help="Run all the tests except those provided on command line") help="Run all the tests except those provided on command line")
...@@ -75,7 +76,10 @@ def main(): ...@@ -75,7 +76,10 @@ def main():
print 'tests: %s' % ','.join(tests) print 'tests: %s' % ','.join(tests)
if options.dry_run: if options.dry_run:
return cmd = w
os.system = w
else:
cmd = cmd
last_time = time() last_time = time()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment