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
537ec714
Commit
537ec714
authored
Mar 23, 2007
by
Andrea Sciaba
Browse files
Checks the output of source cmsset_default.sh for errors
parent
2578ca6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/FroNtier/tests/CE-cms-squid
View file @
537ec714
...
...
@@ -13,16 +13,25 @@ else
echo
"ERROR: Neither VO_CMS_SW_DIR nor OSG_APP defined"
exit
$SAME_ERROR
fi
tmpfile
=
`
mktemp
`
echo
"<pre>"
source
$SW_DIR
/cmsset_default.sh
source
$SW_DIR
/cmsset_default.sh
>
$tmpfile
2>&1
result
=
$?
cat
$tmpfile
echo
"</pre>"
grep
'Your shell is not able to find'
$tmpfile
>
/dev/null
result2
=
$?
rm
-f
$tmpfile
if
[
$result
!=
0
]
then
echo
"ERROR:
$SW_DIR
/cmsset_default.sh non existent or non readable"
exit
$SAME_ERROR
fi
if
[
$result2
==
0
]
then
echo
"ERROR:
$SW_DIR
/cmsset_default.sh failed"
exit
$SAME_ERROR
fi
# Execute main test script
echo
"<h3>Executing the squid test</h3>"
...
...
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