Skip to content

Commit f424f21

Browse files
committed
use shutil to find the curl executable
1 parent 31e69e3 commit f424f21

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

integration-tests/tests/fixtures/integration_test_logs.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,15 @@ def _download_and_extract_dataset(
5858
logger.info("Test logs `%s` are up-to-date. Skipping download.", name)
5959
return integration_test_logs
6060

61+
curl_bin = shutil.which("curl")
62+
if curl_bin is None:
63+
err_msg = "curl executable not found"
64+
raise RuntimeError(err_msg)
65+
6166
try:
6267
# fmt: off
6368
curl_cmds = [
64-
"curl",
69+
curl_bin,
6570
"--fail",
6671
"--location",
6772
"--output", str(integration_test_logs.tarball_path),

0 commit comments

Comments
 (0)