From 705e105062d09d77a76f0da7554532b95bd4da71 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Wed, 9 Oct 2013 22:40:13 -0400 Subject: [PATCH] Update to shunit.sh to stop running tests more than once --- Makefile | 6 +----- bin/shunit.sh | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 8027c87..c7cf7cf 100644 --- a/Makefile +++ b/Makefile @@ -9,11 +9,7 @@ endif RPM=shunit-$(VERSION)-$(RELEASE).noarch.rpm ifndef PREFIX - PREFIX=/ -endif - -ifeq ($(shell uname -o),Cygwin) - PREFIX= + PREFIX='' endif DISTFILE_DEPS=$(shell find . -type f | grep -Ev '\.git|\./dist/|$(DISTFILE)') diff --git a/bin/shunit.sh b/bin/shunit.sh index 3ddb4ec..ab8b98a 100644 --- a/bin/shunit.sh +++ b/bin/shunit.sh @@ -42,6 +42,7 @@ do ${FORMATTER}_testcase "$file" "$key" "$delta" "Exit ${ERRFLAG}" "$SHORTERR" "${ERR}" fi fi + unset -f $key done unset tests done