Skip to content

Commit b7e16ca

Browse files
committed
Kotlin: fix custom_plugin test
1 parent e4653a8 commit b7e16ca

File tree

1 file changed

+6
-5
lines changed
  • java/ql/integration-tests/linux-only/kotlin/custom_plugin

1 file changed

+6
-5
lines changed

java/ql/integration-tests/linux-only/kotlin/custom_plugin/test.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
import pathlib
44
import shutil
55

6-
root = get_semmle_code_path()
6+
this_dir = pathlib.Path(__file__).resolve().parent
77
cwd = pathlib.Path.cwd()
88
builddir = cwd / 'build'
99

1010
builddir.mkdir(exist_ok=True)
1111

1212
try:
13-
runSuccessfully([f'{root}/tools/bazel', f'--output_user_root={builddir}', '--max_idle_secs=1', 'build',
14-
'//java/ql/integration-tests/linux-only/kotlin/custom_plugin/plugin', '--spawn_strategy=local',
15-
'--nouse_action_cache', '--noremote_accept_cached', '--noremote_upload_local_results',
16-
f'--symlink_prefix={cwd / "bazel-"}'], cwd=root)
13+
runSuccessfully(
14+
[f'{get_semmle_code_path()}/tools/bazel', f'--output_user_root={builddir}', '--max_idle_secs=1', 'build',
15+
'//java/ql/integration-tests/linux-only/kotlin/custom_plugin/plugin', '--spawn_strategy=local',
16+
'--nouse_action_cache', '--noremote_accept_cached', '--noremote_upload_local_results',
17+
f'--symlink_prefix={cwd / "bazel-"}'], cwd=this_dir)
1718
finally:
1819
# rules_python creates a read-only directory in bazel's output, this allows cleanup to succeed
1920
runSuccessfully(['chmod', '-R', '+w', builddir])

0 commit comments

Comments
 (0)