From 19a62bd08233ceaab7594fb1a0b7a5f7f3f486d6 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 31 Mar 2019 22:29:09 +0200 Subject: [PATCH] improve tests --- tests-ng/ignore-empty.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests-ng/ignore-empty.sh b/tests-ng/ignore-empty.sh index aa45fca..834c578 100755 --- a/tests-ng/ignore-empty.sh +++ b/tests-ng/ignore-empty.sh @@ -83,8 +83,8 @@ echo "not empty" >> ${tmps}/dotfiles/d1/notempty cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1 -V # test existence -[ -e ${tmpd}/d1/empty ] && exit 1 -[ ! -e ${tmpd}/d1/notempty ] && exit 1 +[ -e ${tmpd}/d1/empty ] && echo 'empty should not exist' && exit 1 +[ ! -e ${tmpd}/d1/notempty ] && echo 'not empty should exist' && exit 1 # through the dotfile cat > ${cfg} << _EOF @@ -112,8 +112,8 @@ rm -rf ${tmpd}/* cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1 -V # test existence -[ -e ${tmpd}/d1/empty ] && exit 1 -[ ! -e ${tmpd}/d1/notempty ] && exit 1 +[ -e ${tmpd}/d1/empty ] && echo 'empty should not exist' && exit 1 +[ ! -e ${tmpd}/d1/notempty ] && echo 'not empty should exist' && exit 1 ## CLEANING rm -rf ${tmps} ${tmpd}