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" ]]