From 1851ec38b7c3599a3f1e6dd929860e3fcc3bcd01 Mon Sep 17 00:00:00 2001 From: Mikko Rapeli Date: Fri, 20 Dec 2024 16:04:28 +0200 Subject: oeqa runtime clamav.py: use curl if ping fails TEST_RUNQEMUPARAMS = "slirp" does not pass ping through but UDP and TCP will work. Thus curl the http website even if the response is DoS blocker and not the real website. Signed-off-by: Mikko Rapeli Signed-off-by: Armin Kuster --- lib/oeqa/runtime/cases/clamav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oeqa/runtime/cases/clamav.py b/lib/oeqa/runtime/cases/clamav.py index 055c1b0..bd451ce 100644 --- a/lib/oeqa/runtime/cases/clamav.py +++ b/lib/oeqa/runtime/cases/clamav.py @@ -44,7 +44,7 @@ class ClamavTest(OERuntimeTestCase): msg = 'File could not be copied. Output: %s' % output self.assertEqual(status, 0, msg=msg) - status, output = self.target.run('ping -c 1 database.clamav.net') + status, output = self.target.run('ping -c 1 database.clamav.net || curl http://database.clamav.net') msg = ('ping database.clamav.net failed: output is:\n%s' % output) self.assertEqual(status, 0, msg = msg) -- cgit v1.2.3-54-g00ecf