Skip to content

Commit e596791

Browse files
committed
Actually fix Travis logic.
Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
1 parent d532224 commit e596791

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/chromium/script.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,14 @@ class bcolors:
2828
chromeOps = webdriver.ChromeOptions()
2929
chromeOps.add_extension(sys.argv[1])
3030

31-
if sys.platform.startswith("linux"):
32-
chromedriver_path = "/usr/lib/chromium-browser/chromedriver"
33-
elif 'TRAVIS' in os.environ:
31+
if 'TRAVIS' in os.environ.keys():
3432
# For TravisCI, we manually copy chromedriver to the local path.
3533
chromedriver_path = os.path.abspath("test/chromium/chromedriver")
3634

3735
# Travis has setuid restrictions. I think this becomes unnecessary in M42+?
38-
chromeOps.add_argument('--no-suid-sandbox')
39-
chromeOps.add_argument('--no-sandbox')
36+
chromeOps.add_argument('--disable-setuid-sandbox')
37+
elif sys.platform.startswith("linux"):
38+
chromedriver_path = "/usr/lib/chromium-browser/chromedriver"
4039
else:
4140
# Let's hope it's in the user's path.
4241
chromedriver_path = "chromedriver"

0 commit comments

Comments
 (0)