[Fai-commit] r6637 - trunk/bin

Thomas Lange lange at alioth.debian.org
Mon Aug 1 09:59:04 UTC 2011


Author: lange
Date: 2011-08-01 09:59:04 +0000 (Mon, 01 Aug 2011)
New Revision: 6637

Modified:
   trunk/bin/fai-do-scripts
Log:
add python support Closes: #635880

thanks to Matthews Solomon for the patch


Modified: trunk/bin/fai-do-scripts
===================================================================
--- trunk/bin/fai-do-scripts	2011-08-01 09:33:50 UTC (rev 6636)
+++ trunk/bin/fai-do-scripts	2011-08-01 09:59:04 UTC (rev 6637)
@@ -157,7 +157,15 @@
 	    fc_check_status $file $exitcode | tee -a $LOGDIR/expect.log
 	;;
 
-	*) echo "File $file has unsupported type $filetype." ;;
+	*"python"*"script"*)
+	    echo "Executing  python: $file"
+	    echo "=====   python: $file   =====" >> $LOGDIR/python.log 2>&1
+	    ./$file >> $LOGDIR/python.log 2>&1
+	    savemaxstatus $?
+	    fc_check_status $file $exitcode | tee -a $LOGDIR/python.log
+	;;
+
+ 	*) echo "File $file has unsupported type $filetype." ;;
     esac
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -




More information about the Fai-commit mailing list