aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2016-12-08 13:58:32 +0100
committerPeter Mikus <pmikus@cisco.com>2016-12-12 06:23:07 +0000
commitdf5b8e6f57e93a5e96b34b854c07df1668651e14 (patch)
treeb5fc93fb0fdbc02bc08378eb2cf6e5372bc9c22f /bootstrap.sh
parenteb38a257f3fbecee93a883ddfc62683e49c649a1 (diff)
Correct the checking of return values.
Change-Id: Icf9f37e0ab0ce4eef3532d3b18f82e9dc5f8f999 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index f3564ecc23..286ec380a2 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -169,7 +169,7 @@ for index in "${!VIRL_SERVER[@]}"; do
scp ${SSH_OPTIONS} *.deb \
${VIRL_USERNAME}@${VIRL_SERVER[${index}]}:${VIRL_DIR_LOC}/
- result=$?
+ result=$?
if [ "${result}" -ne "0" ]; then
echo "Failed to copy VPP deb files to VIRL host ${VIRL_SERVER[${index}]}"
echo ${result}
@@ -199,7 +199,7 @@ for index in "${!VIRL_SERVER[@]}"; do
${VIRL_USERNAME}@${VIRL_SERVER[${index}]} \
"start-testcase -c ${VIRL_TOPOLOGY} -r ${VIRL_RELEASE} ${VPP_DEBS_FULL[@]}")
retval=$?
- if [ "$?" -ne "0" ]; then
+ if [ ${retval} -ne "0" ]; then
echo "VIRL simulation start failed on ${VIRL_SERVER[${index}]}"
exit ${retval}
fi
@@ -218,7 +218,7 @@ for index in "${!VIRL_SERVER[@]}"; do
topologies/enabled/topology${index}.yaml
retval=$?
- if [ "$?" -ne "0" ]; then
+ if [ ${retval} -ne "0" ]; then
echo "Failed to copy topology file from VIRL simulation nr. ${index} on VIRL server ${VIRL_SERVER[${index}]}"
exit ${retval}
fi