Skip to content

Commit d19fd90

Browse files
committed
Fix chrome start
1 parent 098dd34 commit d19fd90

File tree

4 files changed

+1231
-184
lines changed

4 files changed

+1231
-184
lines changed

core/chrome/chrome.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
class Chrome(object):
1414
@staticmethod
1515
def start(url=""):
16-
command = "osascript " + os.path.join(TEST_RUN_HOME, 'core', 'chrome', 'start_chrome') + " " + url.replace("&",
17-
"\&")
18-
run(command=command, log_level=CommandLogLevel.SILENT)
19-
print "Open Google Chrome at {0}".format(url)
2016
if CURRENT_OS is OSType.OSX:
17+
chrome_path = os.path.join(TEST_RUN_HOME, 'core', 'chrome', 'start_chrome')
18+
command = "osascript " + chrome_path + " " + url.replace("&", "\&")
19+
run(command=command, log_level=CommandLogLevel.SILENT)
20+
print "Open Google Chrome at {0}".format(url)
2121
Process.wait_until_running(proc_name="Google Chrome", timeout=30)
2222
elif CURRENT_OS is OSType.LINUX:
23+
run(command="google-chrome", log_level=CommandLogLevel.SILENT)
2324
Process.wait_until_running(proc_name="chrome", timeout=30)
2425

2526
@staticmethod

tests/webpack/build_tests.py

Lines changed: 0 additions & 180 deletions
This file was deleted.

0 commit comments

Comments
 (0)