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:
12
tests-ng/template-link.sh
vendored
12
tests-ng/template-link.sh
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user