mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 556735 - single directory xpcshell-tests and check-one don't work. r=ted
--HG-- extra : rebase_source : 78465fc45518ae116dfa5d438d9b0dc64a69f32d
This commit is contained in:
parent
410cab1d6f
commit
72f3029722
@ -261,7 +261,7 @@ class XPCShellTests(object):
|
||||
testfiles = sorted(glob(os.path.join(os.path.abspath(testdir), "test_*.js")))
|
||||
if self.singleFile:
|
||||
if self.singleFile in [os.path.basename(x) for x in testfiles]:
|
||||
testfiles = os.path.abspath([os.path.join(testdir, self.singleFile)])
|
||||
testfiles = [os.path.abspath(os.path.join(testdir, self.singleFile))]
|
||||
else: # not in this dir? skip it
|
||||
return None
|
||||
|
||||
@ -518,7 +518,7 @@ def main():
|
||||
print >>sys.stderr, "Error: You must specify a test filename in interactive mode!"
|
||||
sys.exit(1)
|
||||
|
||||
if not xpcsh.runTests(args[0], **options.__dict__):
|
||||
if not xpcsh.runTests(args[0], testdirs=args[1:], **options.__dict__):
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user