From 0d2e020948aa260d9bcb6ccb9ea2f51879adf7f6 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Wed, 31 Jul 2013 11:13:31 +0200 Subject: [PATCH] bin/check.sh: clean generated csv/reg.xml files before run again. --- bin/check.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/check.sh b/bin/check.sh index 7165828d..3dfc6e96 100755 --- a/bin/check.sh +++ b/bin/check.sh @@ -315,7 +315,10 @@ if [ -z $SKIP ]; then create_voip_prefs if [ -z $SKIP_RUNSIPP ]; then - echo "$(date) - Generating csv files" + echo "$(date) - Cleaning csv/reg.xml files" + find ${SCEN_CHECK_DIR} -name 'sipp_scenario_responder*_reg.xml' -exec rm {} \; + find ${SCEN_CHECK_DIR} -name '*.csv' -exec rm {} \; + echo "$(date) - Generating csv/reg.xml files" ${BIN_DIR}/scenario.pl ${SCEN_CHECK_DIR}/scenario.yml if [[ $? -ne 0 ]]; then error_helper "Error creating csv files" 4