From 1a2603b4e942af81418d027702408817814a6f94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu>
Date: Fri, 1 Mar 2019 09:11:34 +0100
Subject: [PATCH] Do not check localhost DNS resolution.

---
 tests/test_dns_records.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_dns_records.py b/tests/test_dns_records.py
index 23663295..68ba5667 100755
--- a/tests/test_dns_records.py
+++ b/tests/test_dns_records.py
@@ -95,7 +95,7 @@ services_info = (
 
 for conf_name, default_domain, package in services_info:
     domain = conf.get(conf_name)
-    if domain and domain != default_domain:
+    if domain and domain not in ('localhost', default_domain):
         # check that the service is installed on this system
         status, output = subprocess.getstatusoutput('dpkg -s %s' % package)
         if status == 0:
-- 
GitLab