Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
59e38584
Commit
59e38584
authored
Oct 24, 2012
by
Andrea Sciaba
Browse files
Minor changes in printout
parent
cebb1395
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/FroNtier/tests/test_squid.py
View file @
59e38584
...
...
@@ -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
1
5
:3
9:25
asciaba Exp $"
__revision__
=
"$Id: test_squid.py,v 1.
30
2012/
10/24
1
3
:3
0: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
"
\n
Contents of site-local-config.xml are:"
fileobj
=
open
(
slcfil
,
'r'
)
slcprint
=
fileobj
.
read
()
slcprint
=
slcprint
.
replace
(
'<'
,
'<'
)
...
...
@@ -228,7 +228,7 @@ print "loadtag: " + loadtag
#
# Print script version information
#
print
"script version "
+
__revision__
print
"script version
:
"
+
__revision__
#
# Set server for urllib2
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment