Enable sandboxing integration tests on macOS.
Remove the check_supported_platform helper function, which was used to
prevent running integration tests on non-Linux systems -- even when
those tests would have been useful for a long while. Instead, check
for OS-specific requirements where appropriate.
To make this work, fix the file system related test to work on macOS
and explicitly disable a few that really are Linux-specific.
Prerequisite to address https://github.com/bazelbuild/bazel/issues/10068
as we'll want to have integration tests to validate that the fix remains
functional across macOS upgrades.
RELNOTES: None.
PiperOrigin-RevId: 278471566
diff --git a/src/test/shell/integration/linux-sandbox_network_test.sh b/src/test/shell/integration/linux-sandbox_network_test.sh
index bb52ab7..e3c02f8 100755
--- a/src/test/shell/integration/linux-sandbox_network_test.sh
+++ b/src/test/shell/integration/linux-sandbox_network_test.sh
@@ -53,7 +53,7 @@
}
# The test shouldn't fail if the environment doesn't support running it.
-check_supported_platform || exit 0
+[[ "$(uname -s)" = Linux ]] || exit 0
check_sandbox_allowed || exit 0
run_suite "linux-sandbox-network"