From 2512eeb65a35de9e3b7e3f238e378987fb778c5a Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Thu, 3 Sep 2020 08:32:57 +0200 Subject: [PATCH] adding test case for #250 --- tests-ng/include.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests-ng/include.sh b/tests-ng/include.sh index 0c28fbf..526ffa4 100755 --- a/tests-ng/include.sh +++ b/tests-ng/include.sh @@ -109,6 +109,9 @@ cd ${ddpath} | ${bin} files -c ${cfg} -p p2 | grep f_abc cd ${ddpath} | ${bin} files -c ${cfg} -p p3 | grep f_abc cd ${ddpath} | ${bin} files -c ${cfg} -p p0 | grep f_abc +cnt=`cd ${ddpath} | ${bin} files -c ${cfg} -p p0 | grep f_abc | wc -l` +[ "${cnt}" != "1" ] && echo "dotfiles displayed more than once" && exit 1 + # count cnt=`cd ${ddpath} | ${bin} files -c ${cfg} -p p1 -b | grep '^f_' | wc -l` [ "${cnt}" != "1" ] && exit 1