Skip to content

Commit 96e454e

Browse files
authored
Add bazel path while running the bazel test (#152)
* add path while running the bazel test * fix format
1 parent 7ab457f commit 96e454e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/tools/google/bazeltoolchain/string_formatter/ci_test_example.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import platform
23
import shutil
34

@@ -10,6 +11,9 @@
1011
print(f"SKIPPED TEST BECAUSE BAZEL IS NOT INSTALLED IN {platform.system()} PLATFORM YET.")
1112
exit(0)
1213

14+
# Add bazel path
15+
os.environ["PATH"] += os.pathsep + '/usr/share/bazel-6.3.2/bin'
16+
1317
output = run("bazel --version")
1418

1519
try:

0 commit comments

Comments
 (0)