Bug 656435 - Add --ipcplugins flag to test/mochitest/runtests.py so that we can move the tests without requiring per-branch changes to the release engineering setup, r=ctalbert

This commit is contained in:
Armen Zambrano G 2011-05-13 10:06:35 -04:00
Родитель aa7b32838d
Коммит 058a1a1fc2
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -159,6 +159,11 @@ class MochitestOptions(optparse.OptionParser):
help = "run chrome Mochitests")
defaults["chrome"] = False
self.add_option("--ipcplugins",
action = "store_true", dest = "ipcplugins",
help = "run ipcplugins Mochitests")
defaults["ipcplugins"] = False
self.add_option("--test-path",
action = "store", type = "string", dest = "testPath",
help = "start in the given directory's tests")
@ -433,6 +438,8 @@ class Mochitest(object):
self.urlOpts.append("testPath=" + encodeURIComponent(options.testPath))
elif options.browserChrome:
testURL = "about:blank"
elif options.ipcplugins:
testURL = testHost + self.TEST_PATH + "modules/plugin/test"
return testURL
def startWebSocketServer(self, options, debuggerInfo):