Merge "Do not run Soong tests for Rust on non-Linux hosts."
This commit is contained in:
@@ -17,6 +17,7 @@ package rust
|
|||||||
import (
|
import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"android/soong/android"
|
"android/soong/android"
|
||||||
@@ -50,6 +51,11 @@ func TestMain(m *testing.M) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func testRust(t *testing.T, bp string) *android.TestContext {
|
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()
|
t.Helper()
|
||||||
config := android.TestArchConfig(buildDir, nil)
|
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) {
|
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()
|
t.Helper()
|
||||||
config := android.TestArchConfig(buildDir, nil)
|
config := android.TestArchConfig(buildDir, nil)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user