From: Thierry Parmentelat Date: Tue, 23 Mar 2010 11:25:25 +0000 (+0000) Subject: harden vserver creation (fatal reverse lookup) - liekly to cause vs sendmail to fail X-Git-Tag: tests-5.0-4~5 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=82eb5154f7c136715675206958d418e37f31584a;p=tests.git harden vserver creation (fatal reverse lookup) - liekly to cause vs sendmail to fail --- diff --git a/system/TestPlc.py b/system/TestPlc.py index 7524d00..aec36ba 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -469,7 +469,9 @@ class TestPlc: vserver_hostname=socket.gethostbyaddr(self.vserverip)[0] vserver_options += " --hostname %s"%vserver_hostname except: - pass + print "Cannot reverse lookup %s"%self.vserverip + print "This is considered fatal, as this might pollute the test results" + return False create_vserver="%(build_dir)s/%(script)s %(test_env_options)s %(vserver_name)s %(repo_url)s -- %(vserver_options)s"%locals() return self.run_in_host(create_vserver) == 0