Skip to content

Commit

Permalink
Add linux support Part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Churkin committed Jan 20, 2017
1 parent 842a9b8 commit a8c029b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion TestCafe.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def __init__(self, cmd, listener):
stdin=subprocess.PIPE, startupinfo=startupinfo,
env=proc_env, shell=True)
elif sys.platform == 'linux':
pass # TODO:
self.proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
stdin=subprocess.PIPE, startupinfo=startupinfo,
env=proc_env, shell=True)
else:
self.proc = subprocess.Popen(cmd,
stdout=subprocess.PIPE,
Expand Down
2 changes: 1 addition & 1 deletion TestCafeBrowsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_browser_list():
# https://github.com/int3h/SublimeFixMacPath
proc = subprocess.Popen(['/usr/bin/login -fqpl $USER $SHELL -l -c \'testcafe --list-browsers\''], stdout=subprocess.PIPE, shell=True)
elif sys.platform == 'linux':
pass # TODO
proc = subprocess.Popen('testcafe --list-browsers', stdout=subprocess.PIPE, shell=True)

result = proc.communicate()[0]
return result.decode('utf-8').strip().split('\n')
Expand Down

0 comments on commit a8c029b

Please sign in to comment.