Fix OutDir vs SoongOutDir in tests

Tests were using the same value for OutDir and SoongOutDir, separate
them to allow a test that needs to distinguish between them.

Test: all soong tests
Change-Id: Ibd78758c133a7f07bead3f51b699052676f92fbd
This commit is contained in:
Colin Cross
2021-11-09 12:34:39 -08:00
parent 85b7eb90d9
commit 7b6a55f5a2
4 changed files with 42 additions and 44 deletions

View File

@@ -333,10 +333,8 @@ func TestConfig(buildDir string, env map[string]string, bp string, fs map[string
ShippingApiLevel: stringPtr("30"),
},
outDir: buildDir,
// soongOutDir is inconsistent with production (it should be buildDir + "/soong")
// but a lot of tests assume this :(
soongOutDir: buildDir,
outDir: buildDir,
soongOutDir: filepath.Join(buildDir, "soong"),
captureBuild: true,
env: envCopy,