Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/ci/machine_failure.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
("No logged-in GUI user is available", "the Mac had no logged-in GUI user"),
("Timed out waiting for virtual display readiness", "the virtual display never became ready"),
("screen frame capture failed to start", "screen capture could not start"),
# Homebrew's refusal when the runner user does not own its prefix.
("The following directories are not writable by your user", "the Mac's Homebrew prefix is not writable by the runner user"),
)

# XCTest and Swift Testing lines for a test that began. One of these means the
Expand Down
4 changes: 4 additions & 0 deletions tests/test_ci_machine_failure.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ class MachineFailureTests(unittest.TestCase):
def test_a_runner_that_never_initialized_is_a_machine_failure(self):
self.assertIn("Automation Mode", machine_failure.reason(AUTOMATION_MODE))

def test_an_unwritable_homebrew_prefix_is_a_machine_failure(self):
log = "##[error]The following directories are not writable by your user:\n /opt/homebrew\n"
self.assertEqual(machine_failure.reason(log), "the Mac's Homebrew prefix is not writable by the runner user")

def test_a_started_test_makes_it_the_codes_failure(self):
for started in (
"Test Case '-[cmuxUITests.SidebarTests testA]' started.",
Expand Down
Loading