run_lte: fix check for apps being shutdown correctly

since the new logging system doesn't tag the log file after closing
we now use the stdout to verify the UE has been shut down correctly.
master
Andre Puschmann 4 years ago
parent c16ac6c890
commit c9bf4d14bd

@ -96,9 +96,9 @@ check_ping()
check_ue() check_ue()
{ {
# check that all log files have "Closing log" as last line # check that app exited correctly
last_line=$(cat ./${nof_prb}prb_ue.log | tail -n1) last_line=$(cat ./${nof_prb}prb_screenlog_srsue.log | tail -n1)
if [ "$last_line" != "Closing log" ]; then if [[ "$last_line" != *"--- exiting ---"* ]]; then
echo "Error. srsUE didn't seem to have exited properly." echo "Error. srsUE didn't seem to have exited properly."
exit 1 exit 1
fi fi
@ -162,9 +162,9 @@ check_ue()
check_enb() check_enb()
{ {
# check that all log files have "Closing log" as last line # check that app exited correctly
last_line=$(cat ./${nof_prb}prb_enb.log | tail -n1) last_line=$(cat ./${nof_prb}prb_screenlog_srsenb.log | tail -n1)
if [ "$last_line" != "Closing log" ]; then if [[ "$last_line" != *"--- exiting ---"* ]]; then
echo "Error. srsENB didn't seem to have exited properly." echo "Error. srsENB didn't seem to have exited properly."
exit 1 exit 1
fi fi
@ -214,9 +214,9 @@ check_enb()
check_epc() check_epc()
{ {
# check that log has "Closing log" as last line # check that app exited correctly
last_line=$(cat ./${nof_prb}prb_epc.log | tail -n1) last_line=$(cat ./${nof_prb}prb_screenlog_srsepc.log | tail -n1)
if [ "$last_line" != "Closing log" ]; then if [[ "$last_line" != *"--- exiting ---"* ]]; then
echo "Error. srsEPC didn't seem to have exited properly." echo "Error. srsEPC didn't seem to have exited properly."
exit 1 exit 1
fi fi

Loading…
Cancel
Save