diff options
author | Jose <jose@zeroc.com> | 2019-10-07 20:27:51 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-10-07 20:28:38 +0200 |
commit | 8a57c50c1a9773149ed82471cb9e70ae4ef276d8 (patch) | |
tree | 512b4247c7e6129441e3fc98e878d64b66def5c9 /scripts/Util.py | |
parent | Improved invocation metrics test for better diagnosis, fix for #568 (diff) | |
download | ice-8a57c50c1a9773149ed82471cb9e70ae4ef276d8.tar.bz2 ice-8a57c50c1a9773149ed82471cb9e70ae4ef276d8.tar.xz ice-8a57c50c1a9773149ed82471cb9e70ae4ef276d8.zip |
Test scripts minor fixes
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index 3dae9d9ac64..595744d7198 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -2123,6 +2123,7 @@ class RemoteProcessController(ProcessController): self.proxy = proxy self.terminated = False self.stdout = False + self.output = "" def __str__(self): return "{0} proxy={1}".format(self.exe, self.proxy) @@ -2664,7 +2665,7 @@ class BrowserProcessController(RemoteProcessController): self.url = None self.driver = None try: - cmd = "node -e \"require('./bin/HttpServer')()\""; + cmd = "node -e \"require('./bin/HttpServer')()\"" cwd = current.testcase.getMapping().getPath() self.httpServer = Expect.Expect(cmd, cwd=cwd) self.httpServer.expect("listening on ports") @@ -2721,7 +2722,13 @@ class BrowserProcessController(RemoteProcessController): # another testcase, the controller page will connect to the process controller registry # to register itself with this script. # - testsuite = ("es5/" if current.config.es5 else "") + str(current.testsuite) + testsuite = "" + if current.config.es5: + testsuite += "es5/" + elif isinstance(current.testcase.getMapping(), TypeScriptMapping): + testsuite += "typescript/" + testsuite += str(current.testsuite) + if current.config.protocol == "wss": protocol = "https" port = "9090" @@ -3890,7 +3897,8 @@ class TypeScriptMapping(JavaScriptMixin,Mapping): self.protocol = "ws" def canRun(self, testId, current): - return Mapping.Config.canRun(self, testId, current) and self.browser != "Ie" # IE doesn't support ES6 + # TODO: test TypeScript with browser, the test are currently only compiled for CommonJS (NodeJS) + return Mapping.Config.canRun(self, testId, current) and not self.browser def _getDefaultSource(self, processType): return { "client" : "Client.ts", "serveramd" : "ServerAMD.ts", "server" : "Server.ts" }[processType] |