Skip to content

Commit e1b9742

Browse files
committed
ci: fix macOS?
1 parent 0202b76 commit e1b9742

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
run: |
4040
# The tests require root privileges for PF rules on macOS
4141
# GitHub Actions provides passwordless sudo on macOS runners
42-
sudo cargo test --test macos_integration --verbose
42+
# Use -E to preserve environment and full path to cargo
43+
sudo -E $(which cargo) test --test macos_integration --verbose
4344
4445
test-linux:
4546
name: Linux Tests

src/jail/linux.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use tracing::{debug, error, info, warn};
77
/// Linux namespace network configuration constants
88
pub const LINUX_NS_HOST_IP: [u8; 4] = [169, 254, 1, 1];
99
pub const LINUX_NS_HOST_CIDR: &str = "169.254.1.1/30";
10-
pub const LINUX_NS_GUEST_IP: [u8; 4] = [169, 254, 1, 2];
1110
pub const LINUX_NS_GUEST_CIDR: &str = "169.254.1.2/30";
1211
pub const LINUX_NS_SUBNET: &str = "169.254.1.0/30";
1312

0 commit comments

Comments
 (0)