diff options
author | Tibor Frank <tifrank@cisco.com> | 2016-12-08 13:58:32 +0100 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2016-12-12 06:23:07 +0000 |
commit | df5b8e6f57e93a5e96b34b854c07df1668651e14 (patch) | |
tree | b5fc93fb0fdbc02bc08378eb2cf6e5372bc9c22f /bootstrap-vpp-honeycomb.sh | |
parent | eb38a257f3fbecee93a883ddfc62683e49c649a1 (diff) |
Correct the checking of return values.
Change-Id: Icf9f37e0ab0ce4eef3532d3b18f82e9dc5f8f999
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'bootstrap-vpp-honeycomb.sh')
-rwxr-xr-x | bootstrap-vpp-honeycomb.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap-vpp-honeycomb.sh b/bootstrap-vpp-honeycomb.sh index 66d72b0f87..41bb4db78d 100755 --- a/bootstrap-vpp-honeycomb.sh +++ b/bootstrap-vpp-honeycomb.sh @@ -162,7 +162,7 @@ VIRL_SID=$(ssh ${SSH_OPTIONS} \ ${VIRL_USERNAME}@${VIRL_SERVER} \ "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" exit ${retval} fi @@ -184,7 +184,7 @@ scp ${SSH_OPTIONS} \ topologies/enabled/topology.yaml retval=$? -if [ "$?" -ne "0" ]; then +if [ ${retval} -ne "0" ]; then echo "Failed to copy topology file from VIRL simulation" exit ${retval} fi |