diff --git a/cmake_targets/autotests/run_exec_lte-softmodem_tests.py b/cmake_targets/autotests/run_exec_lte-softmodem_tests.py index 6cce8028c923ca4998625cdd71ec76cc244e2170..30c3717385c6f44db869cc8f4e65e1f3ebc8d33a 100755 --- a/cmake_targets/autotests/run_exec_lte-softmodem_tests.py +++ b/cmake_targets/autotests/run_exec_lte-softmodem_tests.py @@ -1099,7 +1099,6 @@ except KeyError: sys.exit(1) - # get the oai object host = os.uname()[1] #oai = openair('localdomain','calisson') @@ -1208,6 +1207,11 @@ if localshell == 0: result = oai_list[index].send_expect_false('sudo -S -v','may not run sudo',True) print "Sudo permissions..." + result + print "Killing zombie ssh sessions from earlier sessions..." + cmd='ps aux |grep \"/usr/bin/ssh -q -l guptar\"|tr -s \" \" :|cut -f 2 -d :|xargs kill -9 \'' + result=oai_list[index].send_recv(cmd, True) + print result + print '\nCleaning Older running programs : ' + CleanUpOldProgs cleanOldPrograms(oai_list[index], CleanUpOldProgs, CleanUpAluLteBox, ExmimoRfStop) diff --git a/cmake_targets/tools/stop_exmimo2 b/cmake_targets/tools/stop_exmimo2 index 6931229f7a0790b5a6ec87820b4a71b51bc214b7..63810e0bf8a015f6f83aeaa679b8418db3dd33de 100755 --- a/cmake_targets/tools/stop_exmimo2 +++ b/cmake_targets/tools/stop_exmimo2 @@ -6,6 +6,7 @@ if [ "$OPENAIR_DIR" == "" ]; then echo "Is the OPENAIR_DIR path set correctly? Exiting now" exit fi +sudo -E bash -c 'echo 3 > /proc/sys/vm/drop_caches' #load the module sudo -E $OPENAIR_DIR/cmake_targets/tools/init_exmimo2