From 018be3be40ab545c889f18fbc40a8f320cdd4d7a Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 29 Mar 2019 08:42:12 +0100 Subject: [PATCH] fix jhelper test --- tests-ng/jhelpers.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests-ng/jhelpers.sh b/tests-ng/jhelpers.sh index fbb5414..2816236 100755 --- a/tests-ng/jhelpers.sh +++ b/tests-ng/jhelpers.sh @@ -104,9 +104,11 @@ cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1 -V #cat ${tmpd}/abc grep '^this should exist' ${tmpd}/abc >/dev/null -grep -v '^this should not exist' ${tmpd}/abc >/dev/null grep '^this should exist too' ${tmpd}/abc >/dev/null -grep -v '^this should not exist either' ${tmpd}/abc >/dev/null +set +e +grep '^this should not exist' ${tmpd}/abc >/dev/null && exit 1 +grep '^this should not exist either' ${tmpd}/abc >/dev/null && exit 1 +set -e #cat ${tmpd}/abc