From 290b96489d9b146ce5f58b7d24d4e0f77ea22f08 Mon Sep 17 00:00:00 2001 From: Matthew Sykes Date: Tue, 10 Apr 2018 16:55:48 -0400 Subject: [PATCH] [FAB-9454] Remove last unit test package exclusion The tree is at the point where we can run `go test` against all of the packages. Change-Id: Ia717a42f159a97ccd0a385ebf3934bd5c5ee2138 Signed-off-by: Matthew Sykes --- unit-test/run.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/unit-test/run.sh b/unit-test/run.sh index e08d00442d0..40f8e36c83c 100755 --- a/unit-test/run.sh +++ b/unit-test/run.sh @@ -7,7 +7,6 @@ # regexes for packages to exclude from unit test excluded_packages=( - "github.com/hyperledger/fabric/examples/plugins/bccsp" ) # regexes for packages that must be run serially @@ -30,7 +29,12 @@ packages_diff() { # "go list" packages and filter out excluded packages list_and_filter() { - go list $@ 2>/dev/null | grep -Ev $(local IFS='|' ; echo "${excluded_packages[*]}") || true + local filter=$(local IFS='|' ; echo "${excluded_packages[*]}") + if [ -n "$filter" ]; then + go list $@ 2>/dev/null | grep -Ev "${filter}" || true + else + go list $@ 2>/dev/null + fi } # remove packages that must be tested serially