X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=tests%2Fdpdk%2Fdpdk_scripts%2Fcleanup_dpdk.sh;h=a97b4ba12106c2fee94a45079d7f15049696b52c;hp=f43746c2213e9e913f2a4a99a345ae28c937be18;hb=5dc176ab31af5dff73be6dd5266169a7be19dd13;hpb=0f585d16c7f9c0425ae17544ce9c688cb7f6998b diff --git a/tests/dpdk/dpdk_scripts/cleanup_dpdk.sh b/tests/dpdk/dpdk_scripts/cleanup_dpdk.sh index f43746c221..a97b4ba121 100755 --- a/tests/dpdk/dpdk_scripts/cleanup_dpdk.sh +++ b/tests/dpdk/dpdk_scripts/cleanup_dpdk.sh @@ -3,7 +3,7 @@ set -x # Setting variables -DPDK_VERSION=dpdk-18.02 +DPDK_DIR=dpdk ROOTDIR=/tmp/openvpp-testing TESTPMDLOG=screenlog.0 PWDDIR=$(pwd) @@ -20,7 +20,7 @@ if [ $? -eq "0" ]; then success=false sudo pkill testpmd echo "RC = $?" - for attempt in {1..5}; do + for attempt in {1..60}; do echo "Checking if testpmd is still alive, attempt nr ${attempt}" sudo pgrep testpmd if [ $? -eq "1" ]; then @@ -47,7 +47,7 @@ if [ $? -eq "0" ]; then success=false sudo pkill l3fwd echo "RC = $?" - for attempt in {1..5}; do + for attempt in {1..60}; do echo "Checking if l3fwd is still alive, attempt nr ${attempt}" sudo pgrep l3fwd if [ $? -eq "1" ]; then @@ -72,7 +72,7 @@ fi sudo rm -f /dev/hugepages/* # Unbind interfaces -cd ${ROOTDIR}/${DPDK_VERSION}/ +cd ${ROOTDIR}/${DPDK_DIR}/ sudo ./usertools/dpdk-devbind.py -b ${port1_driver} ${port1_pci} || \ { echo "Unbind ${port1_pci} failed"; exit 1; } sudo ./usertools/dpdk-devbind.py -b ${port2_driver} ${port2_pci} || \ @@ -83,8 +83,4 @@ sleep 2 if1_name=`./usertools/dpdk-devbind.py --s | grep "${port1_pci}" | sed -n 's/.*if=\(\S\)/\1/p' | awk -F' ' '{print $1}'` if2_name=`./usertools/dpdk-devbind.py --s | grep "${port2_pci}" | sed -n 's/.*if=\(\S\)/\1/p' | awk -F' ' '{print $1}'` -# Remove igb_uio driver -rmmod igb_uio || \ - { echo "Removing igb_uio failed"; exit 1; } - cd ${PWDDIR}