Whamcloud - gitweb
b=23316 BUG: soft lockup - CPU#2 stuck for 10s! [ll_cfg_requeue:2851]
authorDmitry Zogin <dmitry.zoguine@oracle.com>
Mon, 9 Aug 2010 12:59:45 +0000 (08:59 -0400)
committerJohann Lombardi <johann.lombardi@oracle.com>
Tue, 10 Aug 2010 08:33:10 +0000 (10:33 +0200)
 Use SHARED_DIR_LOGS in error_noexit().
 i=grev

lustre/tests/test-framework.sh

index ed86790..7802fc1 100644 (file)
@@ -2323,6 +2323,8 @@ debugrestore() {
 error_noexit() {
     local TYPE=${TYPE:-"FAIL"}
     local ERRLOG
+    local tmp=$TMP
+    [ -d "$SHARED_DIR_LOGS" ] && tmp=$SHARED_DIR_LOGS
 
     local dump=true
     # do not dump logs if $1=false
@@ -2334,7 +2336,7 @@ error_noexit() {
     log " ${TESTSUITE} ${TESTNAME}: @@@@@@ ${TYPE}: $@ "
 
     if $dump; then
-        ERRLOG=$TMP/lustre_${TESTSUITE}_${TESTNAME}.$(date +%s)
+        ERRLOG=$tmp/lustre_${TESTSUITE}_${TESTNAME}.$(date +%s)
         echo "Dumping lctl log to $ERRLOG"
         # We need to dump the logs on all nodes
         do_nodes $(comma_list $(nodes_list)) $NODE $LCTL dk $ERRLOG