[Fai-commit] r5473 - trunk/lib
Thomas Lange
lange at alioth.debian.org
Tue Jul 21 18:35:23 UTC 2009
Author: lange
Date: 2009-07-21 18:35:22 +0000 (Tue, 21 Jul 2009)
New Revision: 5473
Modified:
trunk/lib/subroutines
Log:
add error handling to task_tests
Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines 2009-07-21 18:14:42 UTC (rev 5472)
+++ trunk/lib/subroutines 2009-07-21 18:35:22 UTC (rev 5473)
@@ -411,7 +411,13 @@
task_tests() {
if [ -d $FAI/tests ]; then
- fai-do-scripts $FAI/tests
+ fai-do-scripts $FAI/tests # always returns 0 atm
+ # check if any test failed
+ if grep -q "FAILED with " $LOGDIR/test.log; then
+ sendmon "TASKERROR tests 312"
+ task_error 312
+ return 1
+ fi
else
echo "WARNING: Subdirectory tests/ not found. Cannot execute test scripts."
fi
More information about the Fai-commit
mailing list