Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1298)

Unified Diff: remoting/host/linux/linux_me2me_host.py

Issue 1903503006: [remoting host] Fix linux_me2me_host.py for swarming/isolate tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/linux/linux_me2me_host.py
diff --git a/remoting/host/linux/linux_me2me_host.py b/remoting/host/linux/linux_me2me_host.py
index 1deb89e03c000c6f386b9ea32f0a071106173712..dd172ef894f9107dc094daf2a4c46da9ceaa6e96 100755
--- a/remoting/host/linux/linux_me2me_host.py
+++ b/remoting/host/linux/linux_me2me_host.py
@@ -55,7 +55,14 @@ DEFAULT_SIZE_NO_RANDR = "1600x1200"
SCRIPT_PATH = os.path.abspath(sys.argv[0])
SCRIPT_DIR = os.path.dirname(SCRIPT_PATH)
-HOST_BINARY_NAME = "chrome-remote-desktop-host"
+IS_INSTALLED = (os.path.basename(sys.argv[0]) != 'linux_me2me_host.py')
+
+if IS_INSTALLED:
+ HOST_BINARY_NAME = "chrome-remote-desktop-host"
+else:
+ # Swarming/isolate tests still use the built executable filename.
+ HOST_BINARY_NAME = "remoting_me2me_host"
+
CHROME_REMOTING_GROUP_NAME = "chrome-remote-desktop"
HOME_DIR = os.environ["HOME"]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698