From 494f58739250eaff9c70bb90d80d17de0e029658 Mon Sep 17 00:00:00 2001 From: Scott Jones Date: Sun, 4 Oct 2026 23:50:45 -0400 Subject: [PATCH] Keep the runtime smoke test's shell off the machine's platform root The shell reads /usr/share/omarchy-platform at fixed paths, and the bar lays itself out around a camera cutout the platform describes there. Run on a MacBook with omarchy-mac installed, the test's shell found the panel's notch, laid the bar out beside it, and failed "runtime geometry keeps update before indicators". The test's copy of the shell now reads an empty fixture root instead, as platform_root_copy does for commands. Co-Authored-By: Claude Opus 5.5 (1M context) --- test/shell.d/runtime-smoke-test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/shell.d/runtime-smoke-test.sh b/test/shell.d/runtime-smoke-test.sh index eb4768e572ec..7191a3a6cf0a 100755 --- a/test/shell.d/runtime-smoke-test.sh +++ b/test/shell.d/runtime-smoke-test.sh @@ -94,6 +94,15 @@ stub_bin="$TMPDIR/bin" log="$TMPDIR/quickshell.log" mkdir -p "$test_root" "$test_home" "$stub_bin" cp -a "$ROOT/shell" "$test_root/shell" +# The shell reads the platform root at a fixed path; the copy reads an empty +# fixture instead, so a machine's own platform files (a MacBook's notch puts +# the bar in its cutout layout) never change the layout this test checks. +platform_root="$TMPDIR/platform" +mkdir -p "$platform_root" +{ grep -rlF /usr/share/omarchy-platform "$test_root/shell" || true; } | + xargs -r sed -i "s|/usr/share/omarchy-platform|$platform_root|g" +! grep -rqF /usr/share/omarchy-platform "$test_root/shell" || + fail "the shell copy reads a fixture platform root, not the machine's" ln -s "$ROOT/config" "$test_root/config" ln -s "$ROOT/bin" "$test_root/bin"