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
6e30bc27
Commit
6e30bc27
authored
Apr 16, 2019
by
Andrea Sciaba
Browse files
Merge branch 'ekizinev-qa-patch-97296' into 'qa'
Correctly parse output of host command See merge request
!8
parents
9cecebde
c2c2a678
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/FroNtier/tests/CE-cms-squid
View file @
6e30bc27
...
...
@@ -2,7 +2,7 @@
shopt
-s
expand_aliases
SCRIPT_REVISION
=
"2019-0
3-0
5, Dave Dykstra and Edita Kizinevic"
SCRIPT_REVISION
=
"2019-0
4-1
5, Dave Dykstra and Edita Kizinevic"
# Source the CMS environment
if
[
-n
"
$OSG_GRID
"
]
;
then
...
...
@@ -99,8 +99,8 @@ check_proxies() {
*
"(proxyurl="
*
)
hostname
=
${
proxy
#*//
}
hostname
=
${
hostname
%
:
*
}
IP_addresses
=
`
host
$hostname
|
awk
'{ print $NF }'
`
if
[
"
$IP_addresses
"
==
"3(NXDOMAIN)"
]
;
then
IP_addresses
=
`
host
$hostname
|
grep
"has.*address"
|
awk
'{ print $NF }'
`
if
[
-z
"
$IP_addresses
"
]
;
then
echo
"Host
$hostname
not found"
echo
ever_failed
=
true
...
...
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