1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 15:39:43 +00:00

Fix failing end-to-end test

This commit is contained in:
Joey Territo
2023-07-23 19:30:09 -05:00
committed by deadc0de
parent 70a7f83834
commit 5c78b9f540

View File

@@ -81,18 +81,24 @@ cd "${ddpath}" | ${bin} install -f -c "${cfg}" -p p1 -b -V
# checks
[ ! -e "${tmpd}"/abc ] && echo "[ERROR] dotfile not installed" && exit 1
diff "${tmpd}"/abc "${expected}" || echo "[ERROR] dotfile not processed by template engine" && exit 1
diff "${tmpd}"/abc "${expected}" || {
echo "[ERROR] dotfile not processed by template engine"
exit 1
}
# test multiple levels of indirection
ln -s "${tmps}"/dotfiles/ghi "${tmps}"/dotfiles/def
ln -s "${tmps}"/dotfiles/def "${tmps}"/dotfiles/abc
ln -s -f "${tmps}"/dotfiles/def "${tmps}"/dotfiles/abc
# install again
cd "${ddpath}" | ${bin} install -f -c "${cfg}" -p p1 -b -V
# checks again
[ ! -e "${tmpd}"/abc ] && echo "[ERROR] dotfile not installed" && exit 1
diff "${tmpd}"/abc "${expected}" || echo "[ERROR] dotfile not processed by template engine" && exit 1
diff "${tmpd}"/abc "${expected}" || {
echo "[ERROR] dotfile not processed by template engine"
exit 1
}
echo "OK"
exit 0