From 293c343c11ec1c29b515b534938970b446f3c986 Mon Sep 17 00:00:00 2001 From: rameshthoomu Date: Thu, 28 Jul 2016 11:34:40 -0400 Subject: [PATCH] Fixes issue #2272 - sdk/node build issues Exit, if the peer and membersrvc executables doesn't exist where they belong to Bug-Url: https://github.com/hyperledger/fabric/issues/2272 Change-Id: I15be6e8f933c2a5024150a267bc9b2557e5d9672 Signed-off-by: rameshthoomu --- sdk/node/bin/run-unit-tests.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sdk/node/bin/run-unit-tests.sh b/sdk/node/bin/run-unit-tests.sh index d1b847db018..95e9735b166 100755 --- a/sdk/node/bin/run-unit-tests.sh +++ b/sdk/node/bin/run-unit-tests.sh @@ -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