Bug 552847. xpcshell: fix "make check-one" and "check-interactive". a=jdm r=ted

This commit is contained in:
Josh Matthews 2010-03-17 13:05:59 +13:00
Родитель 033b450ca8
Коммит 155c68a4c6
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -211,8 +211,8 @@ class XPCShellTests(object):
"""
testfiles = sorted(glob(os.path.join(testdir, "test_*.js")))
if self.singleFile:
if singleFile in [os.path.basename(x) for x in testfiles]:
testfiles = [os.path.join(testdir, singleFile)]
if self.singleFile in [os.path.basename(x) for x in testfiles]:
testfiles = [os.path.join(testdir, self.singleFile)]
else: # not in this dir? skip it
return None
@ -366,7 +366,7 @@ class XPCShellTests(object):
for testdir in testdirs:
self.buildXpcsCmd(testdir)
if testPath and not testdir.endswith(testPath):
if self.testPath and not testdir.endswith(self.testPath):
continue
testdir = os.path.abspath(testdir)