modify PERFTEST_NAME for each job type to avoid clashes on jobids
authorMichal Voců <michal@ruk.cuni.cz>
Wed, 5 Aug 2009 13:45:45 +0000 (13:45 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Wed, 5 Aug 2009 13:45:45 +0000 (13:45 +0000)
org.glite.lb.common/src/perftest_common.sh

index 84a7fc2..b876113 100644 (file)
@@ -159,9 +159,12 @@ run_test()
     for file in ${JOB_FILE[*]}
     do
        [[ $DEBUG -gt 0 ]] && echo -e "\n\nRunning test with input $file"
+       savePERFTEST_NAME=$PERFTEST_NAME
+       PERFTEST_NAME="${PERFTEST_NAME}_${JOB_DESC[i]}"
        linesbefore=`grep PERFTEST $CONSUMER_LOG|wc -l`
        $LOGJOBS $lj_flags -f $file >> $PRODUCER_LOG 2>&1
        linesafter=`grep PERFTEST $CONSUMER_LOG|wc -l`
+       PERFTEST_NAME=$savePERFTEST_NAME
        # if there are no new lines in the log, give it some time
        [[ $linesbefore -eq $linesafter ]] && sleep 5
        linesafter=`grep PERFTEST $CONSUMER_LOG|wc -l`