Keep shell tests inside their fixtures (#6763)

This commit is contained in:
Aditya Garud
2026-08-16 05:45:06 -04:00
committed by GitHub
parent 33cda8b602
commit a3de80d647
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -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
@@ -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" ]]