Skip to content

Commit 290b964

Browse files
committed
[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 <sykesmat@us.ibm.com>
1 parent 968d12b commit 290b964

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

unit-test/run.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
# regexes for packages to exclude from unit test
99
excluded_packages=(
10-
"github.com/hyperledger/fabric/examples/plugins/bccsp"
1110
)
1211

1312
# regexes for packages that must be run serially
@@ -30,7 +29,12 @@ packages_diff() {
3029

3130
# "go list" packages and filter out excluded packages
3231
list_and_filter() {
33-
go list $@ 2>/dev/null | grep -Ev $(local IFS='|' ; echo "${excluded_packages[*]}") || true
32+
local filter=$(local IFS='|' ; echo "${excluded_packages[*]}")
33+
if [ -n "$filter" ]; then
34+
go list $@ 2>/dev/null | grep -Ev "${filter}" || true
35+
else
36+
go list $@ 2>/dev/null
37+
fi
3438
}
3539

3640
# remove packages that must be tested serially

0 commit comments

Comments
 (0)