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.
1 file changed