From: Subrata M. <su...@li...> - 2007-11-27 06:43:42
|
Hi, Please find the following Problem definition and solution (patch) for KDUMP summary script of LTP: Problem description(she...@cn...,): I am testing kdump test automation suite with LTP 20071031. Summary script is provided in the test suite. It tries to summarize the test result with the logfile under $RESULTS_DIR(which is specified in ./control file), but there are two problems. 1. The standard output of "ls $RESULTS_DIR" is redirected to /dev/null so no logfile name can be retrieved. Seems that it should be the standard error output to be redirected to /dev/null. -------------------- 16 LOG=`cat $RESULTS_DIR/\`ls $RESULTS_DIR/ >/dev/null|grep $TEST\ ` 2>/dev/null` -------------------- 2. The script is designed for NUM_ITERATIONS=1. Here is result of summary script. --------------------------------- [root@galluslp1 kdump]# cat config | grep NUM_ITERATIONS NUM_ITERATIONS=2 [root@galluslp1 kdump]# cat control CUR_TEST=2 PREV_TEST=1 ITERATION=2 RESULTS_DIR=/root/ltp-full-20071031/testcases/kdump/results/galluslp1.upt.austin.ibm.com.2007-11-20-11:18:16 [root@galluslp1 kdump]# ./summary RESULTS: ACS: NOT TESTED ACP: NOT TESTED ACE: NOT TESTED ACL: NOT TESTED ------------------ Total: 4 Pass: 0 Fail: 0 NT: 4 [root@galluslp1 kdump]# --------------------------------- BTW: There isn't any place to invoke this script. I don't see any summary under result directory. patch to fix both problems. --Subrata-- |