From a3de80d647c7e31bcad5c08f3f820291a5ef34a6 Mon Sep 17 00:00:00 2001 From: Aditya Garud <153842990+yashranaway@users.noreply.github.com> Date: Sun, 16 Aug 2026 15:15:06 +0530 Subject: [PATCH] Keep shell tests inside their fixtures (#6763) --- test/shell.d/bar-test.sh | 5 +++++ test/shell.d/monitor-clamshell-scale-test.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/test/shell.d/bar-test.sh b/test/shell.d/bar-test.sh index 1443b8ed..0b06258a 100644 --- a/test/shell.d/bar-test.sh +++ b/test/shell.d/bar-test.sh @@ -4,6 +4,11 @@ set -euo pipefail source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh" +# The command fixture follows the runtime invariant and reads defaults through +# OMARCHY_PATH. Point it at this checkout rather than whichever install launched +# the test (or nothing at all on a non-Omarchy development machine). +export OMARCHY_PATH="$ROOT" + if perl -0ne 'exit(/drag\s*\.\s*target\s*:\s*[^;]*\bslot\b/s ? 0 : 1)' "$ROOT/shell/plugins/bar/Bar.qml"; then fail "bar module dragging must not mutate ModuleSlot positions" fi diff --git a/test/shell.d/monitor-clamshell-scale-test.sh b/test/shell.d/monitor-clamshell-scale-test.sh index 17f6a527..07509f36 100644 --- a/test/shell.d/monitor-clamshell-scale-test.sh +++ b/test/shell.d/monitor-clamshell-scale-test.sh @@ -46,6 +46,11 @@ cat >"$stub_bin/omarchy-hyprland-monitor-internal-mirror" <<'SH' exit 0 SH +cat >"$stub_bin/omarchy-hyprland-monitor-laptop" <<'SH' +#!/bin/bash +echo eDP-1 +SH + cat >"$stub_bin/omarchy-hyprland-monitor-external-active" <<'SH' #!/bin/bash [[ ${OMARCHY_TEST_EXTERNAL_ACTIVE:-false} == "true" ]]