Merge "cd to / before running soong_build ."

This commit is contained in:
Lukács T. Berki
2021-03-04 07:07:02 +00:00
committed by Gerrit Code Review
14 changed files with 199 additions and 79 deletions

View File

@@ -2534,7 +2534,8 @@ func TestVendorApex(t *testing.T) {
var builder strings.Builder
data.Custom(&builder, name, prefix, "", data)
androidMk := builder.String()
ensureContains(t, androidMk, `LOCAL_MODULE_PATH := /tmp/target/product/test_device/vendor/apex`)
installPath := path.Join(buildDir, "../target/product/test_device/vendor/apex")
ensureContains(t, androidMk, "LOCAL_MODULE_PATH := "+installPath)
apexManifestRule := ctx.ModuleForTests("myapex", "android_common_myapex_image").Rule("apexManifestRule")
requireNativeLibs := names(apexManifestRule.Args["requireNativeLibs"])