summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2003-09-18 17:22:52 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2003-09-18 17:22:52 (GMT)
commit52a4d694b60b49d93c9b044f7df21a02a02e0ee8 (patch)
tree7e4613e58da38e03ce3af7b2fbfda7f14ab1e495 /bin
parented635e1eeed01e9ff87a3af97ef0f0a1d076b915 (diff)
downloadhdf5-52a4d694b60b49d93c9b044f7df21a02a02e0ee8.zip
hdf5-52a4d694b60b49d93c9b044f7df21a02a02e0ee8.tar.gz
hdf5-52a4d694b60b49d93c9b044f7df21a02a02e0ee8.tar.bz2
[svn-r7487] Purpose:
Improvement Description: The -w timeout option is not supported by all hosts. Added the "ping -c 3" possible PING command. Platforms tested: Tested in eirene by hand only. Misc. update:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/runtest10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/runtest b/bin/runtest
index a8ae9fe..e42a13e 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -153,13 +153,17 @@ PRINT_TRAILER()
CHECK_RSH()
{
# Figure out how to use ping command in this host.
- # Some hosts use "ping host count", some use "ping -c count host"
- # Test "ping -c ..." style first because some '-c' machines treat
- # the command 'ping localhost 3' means to ping host '3'.
+ # Some hosts use "ping host count", some use "ping -c count host".
+ # Test "ping -c 3 -w 5" since it has timeout feature.
+ # Test "ping -c ..." style before "ping host 3" because some machines
+ # that recognize -c treat 'ping localhost 3' as to ping host '3'.
if [ -z "$PING" ]; then
if ping -c 3 -w 5 localhost >/dev/null 2>&1; then
PING='ping -c 3 -w 5'
PINGCOUNT=
+ elif ping -c 3 localhost >/dev/null 2>&1; then
+ PING='ping -c 3'
+ PINGCOUNT=
elif ping localhost 3 >/dev/null 2>&1; then
PING=ping
PINGCOUNT=3