aboutsummaryrefslogtreecommitdiffstats
path: root/dpdk-tests/dpdk_scripts/cleanup_dpdk.sh
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2017-02-07 12:58:47 +0100
committerTibor Frank <tifrank@cisco.com>2017-02-10 13:26:21 +0100
commit6dd47ed60a15c9f4c86d095844839610783a8393 (patch)
tree2cbdfff4673d941de5f17c338d75d18e53887216 /dpdk-tests/dpdk_scripts/cleanup_dpdk.sh
parent3f71d7394f1dc584de9725736d130a5a0e076533 (diff)
CSIT-518: Add testpmd numa awareness
Change-Id: I982834de1fbe71cf5303808ea58d4b58e530ffcb Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'dpdk-tests/dpdk_scripts/cleanup_dpdk.sh')
-rwxr-xr-xdpdk-tests/dpdk_scripts/cleanup_dpdk.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/dpdk-tests/dpdk_scripts/cleanup_dpdk.sh b/dpdk-tests/dpdk_scripts/cleanup_dpdk.sh
index 915d383bfa..c4d0828ac1 100755
--- a/dpdk-tests/dpdk_scripts/cleanup_dpdk.sh
+++ b/dpdk-tests/dpdk_scripts/cleanup_dpdk.sh
@@ -15,6 +15,7 @@ port2_pci=$4
sudo pgrep testpmd
if [ $? -eq "0" ]; then
success=false
+ sudo pkill tail
sudo pkill testpmd
for attempt in {1..5}; do
sudo pgrep testpmd
@@ -24,15 +25,16 @@ if [ $? -eq "0" ]; then
fi
sleep 1
done
- if [ ${success} -eq false ]; then
+ if [ "$success" = false ]; then
echo "The command sudo pkill testpmd failed"
exit 1
fi
+ cat ${TESTPMD_LOG}
fi
+sudo rm -f ${TESTPMD_LOG}
sudo rm -f ${TESTPMD_PID}
sudo rm -f /dev/hugepages/*
-cat ${TESTPMD_LOG}
cd ${ROOTDIR}/dpdk-16.07/
./tools/dpdk-devbind.py -b ${port1_driver} ${port1_pci}