diff --git a/api/server/graph.cc b/api/server/graph.cc index b064fd2c9..74d416b58 100644 --- a/api/server/graph.cc +++ b/api/server/graph.cc @@ -823,11 +823,7 @@ bool Graph::NicAdd(app::Nic *nic_) { } BrickShrPtr head1 = vni.nics.begin()->second.head; - if (pg_brick_unlink_edge(vtep_.get(), head1.get(), - &app::pg_error) < 0) { - PG_ERROR_(app::pg_error); - return false; - } + unlink_edge(vtep_, head1); link(vtep_, vni.sw); add_vni(vtep_, vni.sw, nic.vni); link(vni.sw, head1); diff --git a/scripts/tests_all.sh b/scripts/tests_all.sh index e4459de45..c822d4101 100755 --- a/scripts/tests_all.sh +++ b/scripts/tests_all.sh @@ -37,7 +37,7 @@ fi sleep 1 # Crypto test -$BUTTERFLY_ROOT/scripts/tests_crypto.sh $BUTTERFLY_BUILD_ROOT/build +$BUTTERFLY_ROOT/scripts/tests_crypto.sh $BUTTERFLY_BUILD_ROOT if [ $? != 0 ]; then tput setaf 1 echo "crypto test failed" diff --git a/scripts/tests_crypto.sh b/scripts/tests_crypto.sh index 2d2b9e1ce..535dafacb 100755 --- a/scripts/tests_crypto.sh +++ b/scripts/tests_crypto.sh @@ -3,7 +3,7 @@ BT_BUILD=$1 cd $BT_BUILD -g++ -std=c++11 -lcrypto -DUNIT_TESTS -I../ ../api/common/crypto.cc -o crypto +g++ ../api/common/crypto.cc -std=c++11 -lcrypto -DUNIT_TESTS -I ../ -o crypto ./crypto RET=$? rm crypto diff --git a/tests/functions.sh b/tests/functions.sh index 364da6a49..9f15b9cae 100755 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -831,7 +831,9 @@ function do_kill { function server_stop { id=$1 echo "[butterfly-$id] stopping" - do_kill 1 -15 + sudo kill -15 $(ps --ppid ${server_pids[$id]} -o pid=) &> /dev/null + sleep 0.2 + sudo kill -s 0 ${server_pids[$id]} &> /dev/null if [ "$?" != "1" ]; then for t in {1..3}; do sudo pkill -9 -f but$id &> /dev/null