diff options
| author | 2021-04-01 21:35:20 +0900 | |
|---|---|---|
| committer | 2021-04-05 09:32:06 +0900 | |
| commit | f58c46e36fbffc3422097529987d16ac1cf503f5 (patch) | |
| tree | b0bf1a080107a0bf5cfaff9ce1998527ecca86f7 /rust/image_test.go | |
| parent | 54105c48f4496d7d5dcb3c6a4c6179266dfffc8c (diff) | |
Don't use incorrect version names like VER or BOARD even in tests
All version names will go through ApiLevelFromUser which triggers an
error when the name is not a valid one.
Bug: 175678607
Test: m
Change-Id: Id33bf64085603914d45ad7942cb8908a4734493f
Diffstat (limited to 'rust/image_test.go')
| -rw-r--r-- | rust/image_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/image_test.go b/rust/image_test.go index e40599c3a..7677cce3b 100644 --- a/rust/image_test.go +++ b/rust/image_test.go @@ -38,7 +38,7 @@ func TestVendorLinkage(t *testing.T) { } `) - vendorBinary := ctx.ModuleForTests("fizz_vendor", "android_vendor.VER_arm64_armv8-a").Module().(*cc.Module) + vendorBinary := ctx.ModuleForTests("fizz_vendor", "android_vendor.29_arm64_armv8-a").Module().(*cc.Module) if !android.InList("libfoo_vendor", vendorBinary.Properties.AndroidMkStaticLibs) { t.Errorf("vendorBinary should have a dependency on libfoo_vendor") @@ -56,7 +56,7 @@ func TestImageVndkCfgFlag(t *testing.T) { } `) - vendor := ctx.ModuleForTests("libfoo", "android_vendor.VER_arm64_armv8-a_static").Rule("rustc") + vendor := ctx.ModuleForTests("libfoo", "android_vendor.29_arm64_armv8-a_static").Rule("rustc") if !strings.Contains(vendor.Args["rustcFlags"], "--cfg 'android_vndk'") { t.Errorf("missing \"--cfg 'android_vndk'\" for libfoo vendor variant, rustcFlags: %#v", vendor.Args["rustcFlags"]) |