Commit 59e38584 authored by Andrea Sciaba's avatar Andrea Sciaba
Browse files

Minor changes in printout

parent cebb1395
......@@ -10,7 +10,7 @@ Tests the local FroNtier squid
# 3) file $CMS_PATH/SITECONF/local/JobConfig/site-local-config.xml
# contains the location of the local FroNtier squid server
#
__revision__ = "$Id: test_squid.py,v 1.29 2012/01/13 15:39:25 asciaba Exp $"
__revision__ = "$Id: test_squid.py,v 1.30 2012/10/24 13:30:07 asciaba Exp $"
import os
import sys
import urllib2
......@@ -178,14 +178,14 @@ if not os.environ.has_key("CMS_PATH"):
#
slcfil = os.environ["CMS_PATH"] + \
"/SITECONF/local/JobConfig/site-local-config.xml"
print slcfil
print 'SiteLocalConfig: ' + slcfil
if not os.path.exists(slcfil):
print "test_squid.py: Error. file " + slcfil + " does not exist"
sys.exit(same_error)
#
# Print out site-local-config.xml
#
print "Contents of site-local-config.xml are:"
print "\nContents of site-local-config.xml are:"
fileobj = open(slcfil,'r')
slcprint = fileobj.read()
slcprint = slcprint.replace('<','&lt;')
......@@ -228,7 +228,7 @@ print "loadtag: " + loadtag
#
# Print script version information
#
print "script version " + __revision__
print "script version: " + __revision__
#
# Set server for urllib2
#
......
Markdown is supported
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