Skip to content

Commit

Permalink
[FAB-7675] fix make verify
Browse files Browse the repository at this point in the history
The refactor done in FAB-7649 inverted the match for go files in the
packages_diff function. This corrects the behavior and removes an
unnecessary local variable.

Change-Id: I4aba1aef7fb0775f8b73484c1960c41e01ba3967
Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
  • Loading branch information
sykesm committed Jan 9, 2018
1 parent 78373e9 commit 1c3d63b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions unit-test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ serial_packages=(

# obtain packages changed since some git refspec
packages_diff() {
local ref="${1:-HEAD}"

git -C "${GOPATH}/src/github.com/hyperledger/fabric" diff --no-commit-id --name-only -r "${1:-HEAD}" |
grep -Ev '.go$|^vendor/|^build/' | \
grep '.go$' | grep -Ev '^vendor/|^build/' | \
sed 's%/[^/]*$%/%' | sort -u | \
awk '{print "github.com/hyperledger/fabric/"$1"..."}'
}
Expand Down

0 comments on commit 1c3d63b

Please sign in to comment.