[Fai-commit] r5465 - trunk/lib
Thomas Lange
lange at alioth.debian.org
Mon Jul 20 22:25:30 UTC 2009
Author: lange
Date: 2009-07-20 22:25:30 +0000 (Mon, 20 Jul 2009)
New Revision: 5465
Modified:
trunk/lib/subroutines
Log:
add warning if subdir tests is not available
Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines 2009-07-20 22:15:49 UTC (rev 5464)
+++ trunk/lib/subroutines 2009-07-20 22:25:30 UTC (rev 5465)
@@ -410,7 +410,11 @@
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
task_test() {
- fai-do-scripts $FAI/tests
+ if [ -d $FAI/tests ]; then
+ fai-do-scripts $FAI/tests
+ else
+ echo "WARNING: Subdirectory tests/ not found. Cannot execute test scripts."
+ fi
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
task_savelog() {
More information about the Fai-commit
mailing list