Bug 855709 - Fix error in mach mochitest commands when objdir is a relative path [r=gps]

This commit is contained in:
Matt Brubeck 2013-03-28 15:47:21 -07:00
parent 9ce376052d
commit 1d708d1c9c

View File

@ -61,7 +61,7 @@ class MochitestRunner(MozbuildObject):
if test_file: if test_file:
test_path = self._wrap_path_argument(test_file).relpath() test_path = self._wrap_path_argument(test_file).relpath()
tests_dir = os.path.join(self.topobjdir, '_tests') tests_dir = os.path.abspath(os.path.join(self.topobjdir, '_tests'))
mochitest_dir = os.path.join(tests_dir, 'testing', 'mochitest') mochitest_dir = os.path.join(tests_dir, 'testing', 'mochitest')
failure_file_path = os.path.join(self.statedir, 'mochitest_failures.json') failure_file_path = os.path.join(self.statedir, 'mochitest_failures.json')