Bug 987849 - Temporary solution to raise an Exception if 'fail-if' encountered. r=ahal

This commit is contained in:
Vaibhav Agrawal 2014-09-24 14:12:00 -04:00
parent 8ec04fecb8
commit f8994bd2a3

View File

@ -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('/')