From 4f1019e87e3c84bbb6cd28aea265fe5c171c1285 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Fri, 6 Aug 2010 17:45:49 +0300 Subject: [PATCH] ControlScripts: working version of parse_* scripts with pre-run/post-run script-awareness --- ControlScripts/parse_client_log.sh | 14 ++++++-------- ControlScripts/parse_hrk.sh | 1 - 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/ControlScripts/parse_client_log.sh b/ControlScripts/parse_client_log.sh index 81371ea..dbad40e 100755 --- a/ControlScripts/parse_client_log.sh +++ b/ControlScripts/parse_client_log.sh @@ -11,21 +11,19 @@ # use _DEBUG="off" to turn off debug printing _DEBUG="on" -if test $# -ne 2; then - echo "usage: $0 log-folder log-file" 1>&2 +if test $# -ne 3; then + echo "usage: $0 client-type log-folder log-file" 1>&2 exit 1 fi # Read the global configuration variables source ../ConfigFiles/globalconfig -# Read scenarion configuration file (CLIENT_TYPE) -source ${BASE_PATH}/ClientWorkingFolders/TmpLogs/scenario_config - # Read client mappings configuration file source ../ConfigFiles/client_script_mappings -log_folder=$1 -log_file=$2 +client_type=$1 +log_folder=$2 +log_file=$3 -parse_client_log ${CLIENT_TYPE} ${log_folder} ${log_file} +parse_client_log ${client_type} ${log_folder} ${log_file} diff --git a/ControlScripts/parse_hrk.sh b/ControlScripts/parse_hrk.sh index 863e36d..9b57ce6 100755 --- a/ControlScripts/parse_hrk.sh +++ b/ControlScripts/parse_hrk.sh @@ -8,7 +8,6 @@ # * a folder where the log and data files are stored # * the name of a log file in that folder - if [ ! $# -eq 2 ]; then echo "usage: $0 log-folder log-file" exit 1 -- 2.20.1