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

Unified Diff: mojo/tools/mopy/paths.py

Issue 1384243002: Adds the ability to run pure Go unit tests in the Mojo test suite. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Adds dummy go tests to run. Created 5 years, 2 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
Index: mojo/tools/mopy/paths.py
diff --git a/mojo/tools/mopy/paths.py b/mojo/tools/mopy/paths.py
index deb30f4cf556c16ad5ca4abd3ade062dbfd87873..3715cd84c8827887e35cac9c94fa4cf80e48f4d7 100644
--- a/mojo/tools/mopy/paths.py
+++ b/mojo/tools/mopy/paths.py
@@ -19,6 +19,14 @@ class Paths(object):
self.adb_path = os.path.join(self.src_root, 'third_party', 'android_tools',
'sdk', 'platform-tools', 'adb')
+ self.go_tool_path = None
+ if config and config.target_os == Config.OS_LINUX:
viettrungluu 2015/10/09 21:39:49 Probably nest these under a single |if config:|.
rudominer 2015/10/09 23:42:06 Done.
+ self.go_tool_path = os.path.join(self.src_root, "third_party",
+ "go", "tool", "linux_amd64", "bin", "go")
viettrungluu 2015/10/09 21:39:49 Probably you should also check that the target arc
rudominer 2015/10/09 23:42:06 Done.
+ if config and config.target_os == Config.OS_ANDROID:
viettrungluu 2015/10/09 21:39:49 elif
rudominer 2015/10/09 23:42:06 Done.
+ self.go_tool_path = os.path.join(self.src_root, "third_party",
+ "go", "tool", "android_arm", "bin", "go")
+
if config:
self.build_dir = BuildDirectoryForConfig(config, self.src_root)
elif build_dir is not None:

Powered by Google App Engine
This is Rietveld 408576698