summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2014-07-10 15:13:27 +0200
committerHarshavardhana <harsha@harshavardhana.net>2014-07-28 17:40:49 -0700
commit38bae1bcf95e0b4f713120783c2e26fcc3f629b5 (patch)
tree3b98506a99606b0d097b763d31f51c96b96c094e /tests
parent195594585eb5f6038bda5f085a773b3f8543962d (diff)
Regression test portability: hostname
The --fqdn option to hostname is Linux only This is resubmission of the same patch. I assume the regression test is a test bug BUG: 764655 Change-Id: I6437124186435f10d1ee6a847e2593554d633716 Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.org/8282 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Harshavardhana <harsha@harshavardhana.net> Tested-by: Harshavardhana <harsha@harshavardhana.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/include.rc9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/include.rc b/tests/include.rc
index 30dea01d2a7..7463f5277c8 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -6,7 +6,14 @@ N1=${N1:=/mnt/nfs/1}; # 1st mount point for NFS
V0=${V0:=patchy}; # volume name to use in tests
V1=${V1:=patchy1}; # volume name to use in tests
B0=${B0:=/d/backends}; # top level of brick directories
-H0=${H0:=`hostname --fqdn`}; # hostname
+case `uname -s` in
+Linux)
+ H0=${H0:=`hostname --fqdn`}; # hostname
+ ;;
+*)
+ H0=${H0:=`hostname`}; # hostname
+ ;;
+esac
DEBUG=${DEBUG:=0} # turn on debugging?
PROCESS_UP_TIMEOUT=20