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

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: Rebasing 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
« no previous file with comments | « mojo/tools/mopy/invoke_go.py ('k') | mojo/tools/run_pure_go_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/mopy/paths.py
diff --git a/mojo/tools/mopy/paths.py b/mojo/tools/mopy/paths.py
index deb30f4cf556c16ad5ca4abd3ade062dbfd87873..9b76a8e5f6375408d7e56e928adab24b03cbcc33 100644
--- a/mojo/tools/mopy/paths.py
+++ b/mojo/tools/mopy/paths.py
@@ -19,6 +19,16 @@ 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:
+ if (config.target_os == Config.OS_LINUX and
+ config.target_cpu == Config.ARCH_X64):
+ self.go_tool_path = os.path.join(self.src_root, "third_party",
+ "go", "tool", "linux_amd64", "bin", "go")
+ elif config.target_os == Config.OS_ANDROID:
+ 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:
« no previous file with comments | « mojo/tools/mopy/invoke_go.py ('k') | mojo/tools/run_pure_go_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698