]> git.proxmox.com Git - mirror_qemu.git/commitdiff
iotests: Resolve test failures caused by hostname
authorAndreas Färber <afaerber@suse.de>
Fri, 20 Apr 2012 10:50:24 +0000 (12:50 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 20 Apr 2012 10:58:50 +0000 (12:58 +0200)
`hostname -s` may output an errror:
hostname: Name or service not known
This causes all tests to fail for `make check-block`.

Suppress such error messages, letting the tests succeed.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/common.config

index a220684b0f9a05d79b4a96333b576db91790304d..df082e750c93e808739ce5de8834a0f3b29acd8d 100644 (file)
@@ -36,7 +36,7 @@ export LANG=C
 
 PATH=".:$PATH"
 
-HOST=`hostname -s`
+HOST=`hostname -s 2> /dev/null`
 HOSTOS=`uname -s`
 
 EMAIL=root@localhost    # where auto-qa will send its status messages