diff options
author | Jian Cai <jiancai@google.com> | 2020-01-16 16:12:34 -0800 |
---|---|---|
committer | Jian Cai <jiancai@google.com> | 2020-01-22 18:53:56 +0000 |
commit | c2dec89d0d9758bcbb2457a04f4bf49d5bf4731c (patch) | |
tree | 8b1021df8ed9ca792568c45eea5ad0cfcf2b92ab /compiler_wrapper/testdata/android_golden/bisect.json | |
parent | be0b3faefdbd5681ce49906246c30e117881a1ab (diff) | |
download | toolchain-utils-c2dec89d0d9758bcbb2457a04f4bf49d5bf4731c.tar.gz |
compiler_wrapper: add python search path
Exporting BISECT_STAGE to POPULATE_GOOD currently makes the wrapper fail
to build any files with the error message of "ModuleNotFoundError: No
module named 'bisect_driver'". This patch fixes the issue by adding
search path for bisect_driver.py explicitly.
BUG=chromium:1042452
TEST=verified locally.
Change-Id: I7c73459b377d9011c7087a9e241db378ffb216e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2003947
Tested-by: Jian Cai <jiancai@google.com>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'compiler_wrapper/testdata/android_golden/bisect.json')
-rw-r--r-- | compiler_wrapper/testdata/android_golden/bisect.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler_wrapper/testdata/android_golden/bisect.json b/compiler_wrapper/testdata/android_golden/bisect.json index a24222ab..be07da68 100644 --- a/compiler_wrapper/testdata/android_golden/bisect.json +++ b/compiler_wrapper/testdata/android_golden/bisect.json @@ -25,6 +25,9 @@ "/user/home/ANDROID_BISECT", "/tmp/stable/clang.real", "main.cc" + ], + "env_updates": [ + "PYTHONPATH=/media/storage/jiancai/chromeos/src/third_party/toolchain-utils/compiler_wrapper" ] } } @@ -57,6 +60,9 @@ "someBisectDir", "/tmp/stable/clang.real", "main.cc" + ], + "env_updates": [ + "PYTHONPATH=/media/storage/jiancai/chromeos/src/third_party/toolchain-utils/compiler_wrapper" ] } } @@ -92,6 +98,9 @@ "someBisectDir", "/tmp/stable/clang.real", "main.cc" + ], + "env_updates": [ + "PYTHONPATH=/media/storage/jiancai/chromeos/src/third_party/toolchain-utils/compiler_wrapper" ] }, "stdout": "somemessage", |