hostname: fix tests for non-root on Android.

On Android you can't even get the hostname unless you're root, to avoid
device fingerprinting/tracking.

Also modernize by using skipnot, which fixes the incorrect test name in
the SKIP: output.
diff --git a/tests/hostname.test b/tests/hostname.test
index ba65a39..d94f480 100755
--- a/tests/hostname.test
+++ b/tests/hostname.test
@@ -4,14 +4,9 @@
 
 #testing "name" "command" "result" "infile" "stdin"
 
-HOST="$(cat /proc/sys/kernel/hostname)"
+HOST="$(cat /proc/sys/kernel/hostname 2>/dev/null)"
+skipnot [ $? -eq 0 ]
 testing "get" "hostname" "$HOST\n" "" ""
 
-if [ "$(id -u)" -ne 0 ]
-then
-  echo "$SHOWSKIP: groupdel (not root)"
-  return 2>/dev/null
-  exit
-fi
-
+skipnot [ $(id -u) -eq 0 ]
 testing "set" 'hostname "2>&1 | tee"; hostname; hostname "$HOST"' "2>&1 | tee\n" "" ""