From 775965de859c6df5d5652f3f58edfd68803f0813 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Tue, 10 Aug 2010 23:33:57 -0700 Subject: Improved portability of tests Removed assumptions about umask and locale. Fixed hostname tests to work even when the host has no DNS domain set. Signed-off-by: Dan Fandrich Signed-off-by: Denys Vlasenko --- testsuite/hostname/hostname-d-works | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuite/hostname') diff --git a/testsuite/hostname/hostname-d-works b/testsuite/hostname/hostname-d-works index e062242bb..54c0aac0c 100644 --- a/testsuite/hostname/hostname-d-works +++ b/testsuite/hostname/hostname-d-works @@ -1,3 +1,3 @@ -f=$(busybox hostname -f) +f=$(busybox hostname -f). d=$(busybox hostname -d) -test x"${f#*.}" = x"$d" +test x"${f#*.}" = x"$d${d:+.}" -- cgit v1.2.3