Merge "Add TOP to run_cuj so it runs from the correct dir"

This commit is contained in:
Liz Kammer
2021-09-22 13:54:26 +00:00
committed by Gerrit Code Review

View File

@@ -138,6 +138,8 @@ func main() {
cujDir := filepath.Join(outDir, "cuj_tests") 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. // Use a subdirectory for the out directory for the tests to keep them isolated.
os.Setenv("OUT_DIR", filepath.Join(cujDir, "out")) os.Setenv("OUT_DIR", filepath.Join(cujDir, "out"))