From 4993f198226cf06b35c5a9f820a3b52771e53d8c Mon Sep 17 00:00:00 2001 From: JC Date: Mon, 18 Nov 2024 11:51:48 -0700 Subject: [PATCH] fix: docker sock for macos runner --- rust/android/tests/integration_tests.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rust/android/tests/integration_tests.rs b/rust/android/tests/integration_tests.rs index 0eaa0b6c7..7856ae2d3 100644 --- a/rust/android/tests/integration_tests.rs +++ b/rust/android/tests/integration_tests.rs @@ -4,10 +4,12 @@ use zingolib::testutils::scenarios; // ubuntu ci runner #[cfg(feature = "ci")] const UNIX_SOCKET: Option<&str> = Some("/var/run/docker.sock"); + // macos ci runner -//const UNIX_SOCKET: Option<&str> = Some("`/Users/runner/.colima/default/docker.sock`"); +#[cfg(target_os = "macos")] +const UNIX_SOCKET: Option<&str> = Some("`/Users/runner/.colima/default/docker.sock`"); -#[cfg(all(not(feature = "ci"), feature = "regchest"))] +#[cfg(all(not(feature = "ci"), feature = "regchest", not(target_os = "macos")))] const UNIX_SOCKET: Option<&str> = None; async fn offline_testsuite(abi: &str) {