Skip to content

Commit 293c343

Browse files
committed
Fixes issue #2272 - sdk/node build issues
Exit, if the peer and membersrvc executables doesn't exist where they belong to Bug-Url: #2272 Change-Id: I15be6e8f933c2a5024150a267bc9b2557e5d9672 Signed-off-by: rameshthoomu <[email protected]>
1 parent 0716064 commit 293c343

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

sdk/node/bin/run-unit-tests.sh

+6-7
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,15 @@ init() {
3737
UNITTEST=$FABRIC/sdk/node/test/unit
3838
EXAMPLES=$FABRIC/examples/chaincode/go
3939

40-
# If the executables don't exist where they belong, build them now in place
40+
# Exit if the executables don't exist where they belong
4141
if [ ! -f $MSEXE ]; then
42-
cd $FABRIC/membersrvc
43-
go build
44-
MSEXE=`pwd`/membersrvc
42+
echo "ERROR: $MSEXE does not exist"
43+
exit 1
4544
fi
45+
4646
if [ ! -f $PEEREXE ]; then
47-
cd $FABRIC/peer
48-
go build
49-
PEEREXE=`pwd`/peer
47+
echo "ERROR: $PEEREXE does not exist"
48+
exit 1
5049
fi
5150

5251
# Always run peer with security and privacy enabled

0 commit comments

Comments
 (0)