From 5c78b9f54032ffbe7a90bbc6a6deb8fca595e34e Mon Sep 17 00:00:00 2001 From: Joey Territo Date: Sun, 23 Jul 2023 19:30:09 -0500 Subject: [PATCH] Fix failing end-to-end test --- tests-ng/template-link.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests-ng/template-link.sh b/tests-ng/template-link.sh index ad7b2ef..dff19ef 100755 --- a/tests-ng/template-link.sh +++ b/tests-ng/template-link.sh @@ -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