Bug 903034 - Fix b2g desktop mochitest regression, r=jgriffin

This commit is contained in:
Andrew Halberstadt
2013-08-14 13:57:43 -04:00
parent 9567f92846
commit 6d178c0934
4 changed files with 55 additions and 41 deletions

View File

@@ -176,7 +176,15 @@ class MochitestUtilsMixin(object):
def __init__(self):
os.chdir(SCRIPT_DIR)
mozinfo.find_and_update_from_json(SCRIPT_DIR)
path = SCRIPT_DIR
dirs = []
while path != os.path.expanduser('~'):
if path in dirs:
break
dirs.append(path)
path = os.path.split(path)[0]
mozinfo.find_and_update_from_json(*dirs)
def getFullPath(self, path):
" Get an absolute path relative to self.oldcwd."