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
authorArmen Zambrano G. <armenzg@mozilla.com>
Fri, 13 May 2011 10:06:35 -0400
changeset 69441 72f447a53575e24c0f18f80d76931426cde9f660
parent 69440 9260062de89b763c417d43f85b4730425ae04479
child 69442 7ba9f4f76e735b9afea8b147e85a9eb9b624e4bc
push id19976
push userbsmedberg@mozilla.com
push dateFri, 13 May 2011 14:07:06 +0000
treeherdermozilla-central@72f447a53575 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersctalbert
bugs656435
milestone6.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
testing/mochitest/runtests.py
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -154,16 +154,21 @@ class MochitestOptions(optparse.OptionPa
                            "to INFO" % LEVEL_STRING)
     defaults["fileLevel"] = "INFO"
 
     self.add_option("--chrome",
                     action = "store_true", dest = "chrome",
                     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")
     defaults["testPath"] = ""
 
     self.add_option("--browser-chrome",
                     action = "store_true", dest = "browserChrome",
                     help = "run browser chrome Mochitests")
@@ -428,16 +433,18 @@ class Mochitest(object):
       if options.testPath:
         self.urlOpts.append("testPath=" + encodeURIComponent(options.testPath))
     elif options.a11y:
       testURL = testHost + self.A11Y_PATH
       if options.testPath:
         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):
     """ Launch the websocket server """
     if options.webServer != '127.0.0.1':
       return
 
     self.wsserver = WebSocketServer(self.automation, options,