Answer stability round 1: 0 🔴, 2 🟡 (0 misread); run CI's image untagged and state where the socket must be
This commit is contained in:
+2
-2
@@ -8,6 +8,6 @@ def isolated_env() -> dict[str, str]:
|
||||
return {name: value for name, value in os.environ.items() if not name.startswith(("GIT_", "LOOP_CLAUDE_", "PYTHON")) and name != "CLAUDE_CODE_SANDBOXED"}
|
||||
|
||||
|
||||
# Root ignores file permissions, so a test that makes a file unreadable or a folder read-only needs another user.
|
||||
# Call it first in a test that takes a file's or a folder's permissions away.
|
||||
def assert_not_root(test: unittest.TestCase) -> None:
|
||||
test.assertNotEqual(os.geteuid(), 0, "this test needs file permissions to bind it, which they don't for root: run the tests as another user")
|
||||
test.assertNotEqual(os.geteuid(), 0, "root ignores file permissions, which this test checks: run the tests as a user other than root")
|
||||
|
||||
Reference in New Issue
Block a user