##// END OF EJS Templates
run-tests: add --loop support...
Matt Mackall -
r19283:8300adf9 default
parent child Browse files
Show More
@@ -159,6 +159,8 b' def parseargs():'
159 help="run tests matching keywords")
159 help="run tests matching keywords")
160 parser.add_option("-l", "--local", action="store_true",
160 parser.add_option("-l", "--local", action="store_true",
161 help="shortcut for --with-hg=<testdir>/../hg")
161 help="shortcut for --with-hg=<testdir>/../hg")
162 parser.add_option("--loop", action="store_true",
163 help="loop tests repeatedly")
162 parser.add_option("-n", "--nodiff", action="store_true",
164 parser.add_option("-n", "--nodiff", action="store_true",
163 help="skip showing test changes")
165 help="skip showing test changes")
164 parser.add_option("-p", "--port", type="int",
166 parser.add_option("-p", "--port", type="int",
@@ -1088,6 +1090,8 b' def scheduletests(options, tests):'
1088 running -= 1
1090 running -= 1
1089 if tests and not running == jobs:
1091 if tests and not running == jobs:
1090 test = tests.pop(0)
1092 test = tests.pop(0)
1093 if options.loop:
1094 tests.append(test)
1091 t = threading.Thread(None, job, args=(test, count))
1095 t = threading.Thread(None, job, args=(test, count))
1092 t.start()
1096 t.start()
1093 running += 1
1097 running += 1
General Comments 0
You need to be logged in to leave comments. Login now