##// END OF EJS Templates
run-tests: fix crash when --json and --blacklist are both used (issue5050)...
run-tests: fix crash when --json and --blacklist are both used (issue5050) This patch fixes a crash when both --json and --blacklist were given as arguments of run-tests.py. Now, instead of crashing, we add an entry for blacklisted tests in the json output to show that the tests were skipped.

File last commit:

r24705:0ead0a07 default
r27927:0de4dfc9 stable
Show More
mockblackbox.py
11 lines | 229 B | text/x-python | PythonLexer
Gregory Szorc
tests: move mock blackbox extension into own file...
r24705 from mercurial import util
def makedate():
return 0, 0
def getuser():
return 'bob'
# mock the date and user apis so the output is always the same
def uisetup(ui):
util.makedate = makedate
util.getuser = getuser