Merge "Do not run Soong tests for Rust on non-Linux hosts."

am: 2be86f201c

Change-Id: Id7c02175c9e6ccb7a74d84e336c508fe4bc116b1
This commit is contained in:
Ivan Lozano 2019-09-04 14:07:14 -07:00 committed by android-build-merger
commit fc4d6ab32f

View file

@ -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)