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 ...@@ -10,7 +10,7 @@ Tests the local FroNtier squid
# 3) file $CMS_PATH/SITECONF/local/JobConfig/site-local-config.xml # 3) file $CMS_PATH/SITECONF/local/JobConfig/site-local-config.xml
# contains the location of the local FroNtier squid server # 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 os
import sys import sys
import urllib2 import urllib2
...@@ -178,14 +178,14 @@ if not os.environ.has_key("CMS_PATH"): ...@@ -178,14 +178,14 @@ if not os.environ.has_key("CMS_PATH"):
# #
slcfil = os.environ["CMS_PATH"] + \ slcfil = os.environ["CMS_PATH"] + \
"/SITECONF/local/JobConfig/site-local-config.xml" "/SITECONF/local/JobConfig/site-local-config.xml"
print slcfil print 'SiteLocalConfig: ' + slcfil
if not os.path.exists(slcfil): if not os.path.exists(slcfil):
print "test_squid.py: Error. file " + slcfil + " does not exist" print "test_squid.py: Error. file " + slcfil + " does not exist"
sys.exit(same_error) sys.exit(same_error)
# #
# Print out site-local-config.xml # 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') fileobj = open(slcfil,'r')
slcprint = fileobj.read() slcprint = fileobj.read()
slcprint = slcprint.replace('<','&lt;') slcprint = slcprint.replace('<','&lt;')
...@@ -228,7 +228,7 @@ print "loadtag: " + loadtag ...@@ -228,7 +228,7 @@ print "loadtag: " + loadtag
# #
# Print script version information # Print script version information
# #
print "script version " + __revision__ print "script version: " + __revision__
# #
# Set server for urllib2 # 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