Skip to content

Commit

Permalink
[FAB-9454] Remove last unit test package exclusion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sykesm committed Apr 10, 2018
1 parent 968d12b commit 290b964
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions unit-test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 290b964

Please sign in to comment.