From 349e51611fa722a8960088258332d3b4eb7676dc Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Tue, 8 Apr 2014 10:35:33 +0200 Subject: [PATCH] MT#6389 Add ability to stip DNS check via SKIP_DNS_CHECK_TEST We have no DNS records for freshly installed VMs/Vagrant/Amazon images. So, we have to skip the test there. It is enabled by default for other test cases as it is useful itself. We can conside to configure DNS for freshly installed VMs one day. --- pro/01_hostname-and-interfaces.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pro/01_hostname-and-interfaces.t b/pro/01_hostname-and-interfaces.t index f788ad9..8a426cb 100755 --- a/pro/01_hostname-and-interfaces.t +++ b/pro/01_hostname-and-interfaces.t @@ -64,6 +64,7 @@ sub main { } SKIP: { + skip 'fqdn not found', 2 if not defined $hostname_fqdn_ip; @@ -88,6 +89,9 @@ sub main { if $ENV{TEST_VERBOSE}; } + skip 'DNS resolve check as requested via env SKIP_DNS_CHECK_TEST=true', 1 + if $ENV{SKIP_DNS_CHECK_TEST}; + # check if every interface has a hostname set (different from the ip) eq_or_diff( [ map {