aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2019-09-04 14:07:14 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-09-04 14:07:14 -0700
commitfc4d6ab32f03a4d966fe7e3c80649e6aa668c70b (patch)
treecdeb0806180451d65b67a1ba02185531eb63b6b3
parentf80ef34c80c489c38cbb528f7608dab66018ecf8 (diff)
parent2be86f201c77333db1d7769f68c6e7418e94d817 (diff)
downloadsoong-temp_140451723.tar.gz
Merge "Do not run Soong tests for Rust on non-Linux hosts."temp_140451723
am: 2be86f201c Change-Id: Id7c02175c9e6ccb7a74d84e336c508fe4bc116b1
-rw-r--r--rust/rust_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/rust/rust_test.go b/rust/rust_test.go
index c68cfe7c9..f7c96dd6a 100644
--- a/rust/rust_test.go
+++ b/rust/rust_test.go
@@ -17,6 +17,7 @@ package rust
import (
"io/ioutil"
"os"
+ "runtime"
"testing"
"android/soong/android"
@@ -50,6 +51,11 @@ func TestMain(m *testing.M) {
}
func testRust(t *testing.T, bp string) *android.TestContext {
+ // TODO (b/140435149)
+ if runtime.GOOS != "linux" {
+ t.Skip("Only the Linux toolchain is supported for Rust")
+ }
+
t.Helper()
config := android.TestArchConfig(buildDir, nil)
@@ -66,6 +72,11 @@ func testRust(t *testing.T, bp string) *android.TestContext {
}
func testRustError(t *testing.T, pattern string, bp string) {
+ // TODO (b/140435149)
+ if runtime.GOOS != "linux" {
+ t.Skip("Only the Linux toolchain is supported for Rust")
+ }
+
t.Helper()
config := android.TestArchConfig(buildDir, nil)