1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 21:19:15 +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 # checks
[ ! -e "${tmpd}"/abc ] && echo "[ERROR] dotfile not installed" && exit 1 [ ! -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 # test multiple levels of indirection
ln -s "${tmps}"/dotfiles/ghi "${tmps}"/dotfiles/def 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 # install again
cd "${ddpath}" | ${bin} install -f -c "${cfg}" -p p1 -b -V cd "${ddpath}" | ${bin} install -f -c "${cfg}" -p p1 -b -V
# checks again # checks again
[ ! -e "${tmpd}"/abc ] && echo "[ERROR] dotfile not installed" && exit 1 [ ! -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" echo "OK"
exit 0 exit 0