Skip to content

Commit

Permalink
Fixes issue #2272 - sdk/node build issues
Browse files Browse the repository at this point in the history
Exit, if the peer and membersrvc executables doesn't exist
where they belong to

Bug-Url: #2272

Change-Id: I15be6e8f933c2a5024150a267bc9b2557e5d9672
Signed-off-by: rameshthoomu <rameshbabu.thoomu@gmail.com>
  • Loading branch information
rameshthoomu committed Jul 29, 2016
1 parent 0716064 commit 293c343
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions sdk/node/bin/run-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,15 @@ init() {
UNITTEST=$FABRIC/sdk/node/test/unit
EXAMPLES=$FABRIC/examples/chaincode/go

# If the executables don't exist where they belong, build them now in place
# Exit if the executables don't exist where they belong
if [ ! -f $MSEXE ]; then
cd $FABRIC/membersrvc
go build
MSEXE=`pwd`/membersrvc
echo "ERROR: $MSEXE does not exist"
exit 1
fi

if [ ! -f $PEEREXE ]; then
cd $FABRIC/peer
go build
PEEREXE=`pwd`/peer
echo "ERROR: $PEEREXE does not exist"
exit 1
fi

# Always run peer with security and privacy enabled
Expand Down

0 comments on commit 293c343

Please sign in to comment.