Add TOP to run_cuj so it runs from the correct dir

Test: locally run build/soong/cuj/run_cuj.sh
Change-Id: I89cdc91cc48349fa62840d24baf9b3818284f090
This commit is contained in:
Liz Kammer
2021-09-10 15:23:14 -04:00
parent 4011ebb12d
commit 05d0d24fdc

View File

@@ -138,6 +138,8 @@ func main() {
cujDir := filepath.Join(outDir, "cuj_tests")
wd, _ := os.Getwd()
os.Setenv("TOP", wd)
// Use a subdirectory for the out directory for the tests to keep them isolated.
os.Setenv("OUT_DIR", filepath.Join(cujDir, "out"))