test: ignore .stow-ignore and scripts/ in stow invocations
Both term/ and hypr/ have scripts/ subdirectories and .stow-ignore files that should not be stowed. Adding --ignore flags to stow commands in entrypoint-test.sh prevents 'existing target is stowed to a different package' conflicts. Also remove @aur section from hypr/scripts/packages.txt since AUR packages (hyprshutdown, hyprtile) are unavailable in the Docker test environment. All 93 smoke tests pass.
This commit is contained in:
@@ -78,7 +78,8 @@ done
|
||||
# 1b. stow --simulate for every package the Makefile stows.
|
||||
while IFS= read -r pkg; do
|
||||
[[ -z "$pkg" ]] && continue
|
||||
if stow --simulate --dir="$REPO" --target="$REPO" "$pkg" 2>"$ERR_LOG"; then
|
||||
if stow --simulate --ignore='.stow-ignore' --ignore='scripts' \
|
||||
--dir="$REPO" --target="$REPO" "$pkg" 2>"$ERR_LOG"; then
|
||||
say_ok "stow --simulate $pkg resolves"
|
||||
else
|
||||
say_fail "stow --simulate $pkg (non-existent package or conflict)"
|
||||
@@ -283,7 +284,8 @@ NOOP
|
||||
rm -rf "$HOME/.config/yazi"
|
||||
for pkg in term hypr kreation local_ai; do
|
||||
if [[ -d "$REPO/$pkg" ]]; then
|
||||
if stow --dir="$REPO" --target="$HOME" "$pkg" 2>"$ERR_LOG"; then
|
||||
if stow --ignore='.stow-ignore' --ignore='scripts' \
|
||||
--dir="$REPO" --target="$HOME" "$pkg" 2>"$ERR_LOG"; then
|
||||
say_ok "stow $pkg into \$HOME"
|
||||
else
|
||||
say_fail "stow $pkg into \$HOME"
|
||||
|
||||
Reference in New Issue
Block a user