mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 987849 - Temporary solution to raise an Exception if 'fail-if' encountered. r=ahal
This commit is contained in:
parent
8ec04fecb8
commit
f8994bd2a3
@ -1590,6 +1590,8 @@ class Mochitest(MochitestUtilsMixin):
|
||||
paths = []
|
||||
|
||||
for test in tests:
|
||||
if test.get('expected') == 'fail':
|
||||
raise Exception('fail-if encountered for test: %s. There is no support for fail-if in Mochitests.' % test['name'])
|
||||
pathAbs = os.path.abspath(test['path'])
|
||||
assert pathAbs.startswith(self.testRootAbs)
|
||||
tp = pathAbs[len(self.testRootAbs):].replace('\\', '/').strip('/')
|
||||
|
Loading…
Reference in New Issue
Block a user