Skip to content
Snippets Groups Projects
Commit 336ef3a2 authored by Christopher Henry Hollowell's avatar Christopher Henry Hollowell
Browse files

Change -n flag to -r.

parent e1113653
No related branches found
No related tags found
No related merge requests found
...@@ -21,15 +21,15 @@ def help(): ...@@ -21,15 +21,15 @@ def help():
print "-v Display verbose output, including all scores" print "-v Display verbose output, including all scores"
print "-d Run Docker test" print "-d Run Docker test"
print "-s Run Singularity test" print "-s Run Singularity test"
print "-n RUNS Number of runs to execute (default " + str(RUNS) + ")" print "-r RUNS Number of runs to execute (default " + str(RUNS) + ")"
print "-R REGISTRY Use an alternate (instead of official) Docker registry" print "-R REGISTRY Use an alternate (instead of official) Docker registry"
print "-L Run container via local Docker daemon (cannot be used with -s)" print "-L Run container via local Docker daemon (cannot be used with -s)"
print "\nExamples" print "\nExamples"
print "--------" print "--------"
print "Run 'lhcb-gen-sim' 10 times in Docker and Singularity, displaying all scores:" print "Run 'lhcb-gen-sim' 10 times in Docker and Singularity, displaying all scores:"
print "reptest -sdv -n 10 /tmp/hwoutput lhcb-gen-sim" print "reptest -sdv -r 10 /tmp/hwoutput lhcb-gen-sim"
print "Run 'atlas-sim-bmk' 5 times in Docker:" print "Run 'atlas-sim-bmk' 5 times in Docker:"
print "reptest -d -n 5 /tmp/hwoutput atlas-sim-bmk" print "reptest -d -r 5 /tmp/hwoutput atlas-sim-bmk"
def procres(rpath, verbose): def procres(rpath, verbose):
...@@ -145,7 +145,7 @@ def main(): ...@@ -145,7 +145,7 @@ def main():
global REGISTRY, RUNS global REGISTRY, RUNS
try: try:
opts, args = getopt.getopt(sys.argv[1:], 'hvdsn:R:L') opts, args = getopt.getopt(sys.argv[1:], 'hvdsr:R:L')
except getopt.GetoptError as err: except getopt.GetoptError as err:
print "\nError: " + str(err) + "\n" print "\nError: " + str(err) + "\n"
help() help()
...@@ -160,7 +160,7 @@ def main(): ...@@ -160,7 +160,7 @@ def main():
if opt == '-h': if opt == '-h':
help() help()
sys.exit(0) sys.exit(0)
elif opt == '-n': elif opt == '-r':
try: try:
RUNS = int(arg) RUNS = int(arg)
except ValueError: except ValueError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment