Header is now generated by a sgared function.
authorZdeněk Šustr <sustr4@cesnet.cz>
Thu, 10 Nov 2011 11:24:23 +0000 (11:24 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Thu, 10 Nov 2011 11:24:23 +0000 (11:24 +0000)
org.glite.testsuites.ctb/LB/tests/lb-autonomous-test.sh

index 90d2760..62d20cb 100755 (executable)
@@ -101,33 +101,8 @@ test_done
 
 ENDTIME=`date +%s`
 
-DURATION=`expr $ENDTIME - $STARTTIME`
-
-ISSUE=`cat /etc/issue | head -n 1`
-PLATFORM=`uname -i`
-TESTBED=`hostname -f`
-DISTRO=`cat /etc/issue | head -n 1 | sed 's/\s.*$//'`
-VERSION=`cat /etc/issue | head -n 1 | grep -E -o "[0-9]+\.[0-9]+"`
-MAJOR=`echo $VERSION | sed 's/\..*$//'`
-
-# Generate final report snippet
-
-printf "
----++ $SCENARIO, $DISTRO $MAJOR
-
----+++ Environment
-#CleanInstallation
-
-Clean installation according to EMI guidelines (CA certificates, proxy certificate...).
-
-| OS Issue | $ISSUE |
-| Platform | $PLATFORM |
-| Host | $TESTBED |
-| Duration | `expr $DURATION / 60` min |
-| Testbed uptime | <verbatim>`uptime`</verbatim> |
-
----++++ Process
-<verbatim>\n" > report.twiki
+#Generating report section
+gen_deployment_header $ENDTIME $STARTTIME "$SCENARIO" > report.twiki
 
 cat LBinstall.sh >> report.twiki
 printf "</verbatim>