From 0c513fb20c6208ff1675568e8633a479922b60f8 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Tue, 8 Oct 2024 19:02:31 -0700 Subject: [PATCH] Make 079f542ea9d actually working. --- test_run.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/test_run.sh b/test_run.sh index 90fa7ab..3dd6eed 100755 --- a/test_run.sh +++ b/test_run.sh @@ -76,17 +76,13 @@ start_mm() { -DOPENSIPS_VER_FULL=${MM_VER_FULL} -DNRET=${nret} done set +e - if ! ${MM_BIN} -f "${MM_CFG}" -C + ${MM_BIN} -f "${MM_CFG}" -C + MM_DRUN_RC="${?}" + if [ ${MM_DRUN_RC} -gt 127 ] then - status=${?} - if [ ${status} -gt 127 ] - then - apt install -y gdb - gdb --batch -ex "run" -ex "bt" --args ${MM_BIN} -f "${MM_CFG}" -C - fi - exit ${status} + apt install -y gdb + gdb --batch -ex "run" -ex "bt" --args ${MM_BIN} -f "${MM_CFG}" -C fi - MM_DRUN_RC="${?}" report_rc_log "${MM_DRUN_RC}" "${MM_CFG}" "Checking ${MM_TYPE} config" set -e echo "--- Config Begins ---"