diff options
author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2024-12-20 16:04:28 +0200 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2024-12-27 11:28:23 -0500 |
commit | 1851ec38b7c3599a3f1e6dd929860e3fcc3bcd01 (patch) | |
tree | 2630b54038c75e1c651dbc8a039f8121c4ddd9ef | |
parent | 5c98ff10a65534dffd2e6426ea8f5592f3957a2d (diff) | |
download | meta-security-1851ec38b7c3599a3f1e6dd929860e3fcc3bcd01.tar.gz |
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 <mikko.rapeli@linaro.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | lib/oeqa/runtime/cases/clamav.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
44 | msg = 'File could not be copied. Output: %s' % output | 44 | msg = 'File could not be copied. Output: %s' % output |
45 | self.assertEqual(status, 0, msg=msg) | 45 | self.assertEqual(status, 0, msg=msg) |
46 | 46 | ||
47 | status, output = self.target.run('ping -c 1 database.clamav.net') | 47 | status, output = self.target.run('ping -c 1 database.clamav.net || curl http://database.clamav.net') |
48 | msg = ('ping database.clamav.net failed: output is:\n%s' % output) | 48 | msg = ('ping database.clamav.net failed: output is:\n%s' % output) |
49 | self.assertEqual(status, 0, msg = msg) | 49 | self.assertEqual(status, 0, msg = msg) |
50 | 50 | ||