#df /var/lib/mysql/ | tail -n 1 | awk '{ print $4 }'
+function try_purge()
+{
+ #Purge test job
+ joblist=$1
+ echo $jobid > ${joblist}
+
+ printf "Purging test job (Trying the best, result will not be tested)\n"
+
+ ${LBPURGE} -j ${joblist}
+
+ rm ${joblist}
+
+}
+
function test_args()
{
- echo $@
+ gcho $@
}
test_failed
print_error "Job is not in appropriate state"
fi
+
+ #Purge test job
+ joblist=$$_jobs_to_purge.txt
+ echo $jobid > ${joblist}
+ try_purge ${joblist}
+
fi
fi
#Purge test job
joblist=$$_jobs_to_purge.txt
echo $jobid > ${joblist}
-
- printf "Purging test job (Trying the best, result will not be tested)\n"
-
- ${LBPURGE} -j ${joblist}
-
- rm ${joblist}
-
+ try_purge ${joblist}
fi