Commit 9fd0fb08 authored by Andrea Sciaba's avatar Andrea Sciaba
Browse files

Dump config only if differs

parent 1aa0f008
......@@ -204,6 +204,7 @@ if [ $rc == $SAME_OK ] || [ $rc == $SAME_INFO ] ; then
diff -q -w -B $ConfigFile $ConfigFileFromCVS
if [ $? == 1 ] ; then asCvs=0; fi
if [ $asCvs == 0 ] ; then
noConfigDump=1
cvsMarkupUrl="\"http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/COMP/SITECONF/${siteName}/JobConfig/site-local-config${_subSiteName}.xml?view=markup\""
ConfigFileMarkup=`mktemp /tmp/site-local-config-from-CVS-Markup.xml.XXX`
echo "Fetch CVS Markup copy of local config from $cvsMarkupUrl<br>"
......@@ -276,7 +277,7 @@ if [ $rc == $SAME_OK ] || [ $rc == $SAME_INFO ] ; then
if [ $? == 1 ] ; then asCvs=0; fi
echo "<br>"
if [ $asCvs == 0 ] ; then
noTFCDump=1
cvsMarkupUrl="\"http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/COMP/SITECONF/${siteName}/PhEDEx/${TFCfileName}?view=markup\""
TfcFileMarkup=`mktemp /tmp/TFC-from-CVS-Markup.xml.XXX`
echo "Fetch CVS Markup copy of TFC from $cvsMarkupUrl<br>"
......@@ -402,15 +403,19 @@ echo "<hr>"
echo "<h2>Dump of local configuration files</h2><br>"
if [ -n "$noConfigDump" ] ; then
echo "<h3><a name="CfgDump"></a>Configuration File Dump</h3>"
echo "<pre>"
cat $ConfigFile | sed 's/</\&lt;/g' | sed 's/>/\&gt;/g'
echo "</pre>"
fi
if [ -n "$noTFCDump" ] ; then
echo "<h3><a name="TFCDump"></a>TFC file Dump</h3>"
echo "<pre>"
cat $TFCfile | sed 's/</\&lt;/g' | sed 's/>/\&gt;/g'
echo "</pre>"
fi
echo '<h1><a name="summary"> Test Summary</a></h1><p>'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment