mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-12 03:10:13 +00:00
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>
This commit is contained in:
committed by
Armin Kuster
parent
5c98ff10a6
commit
1851ec38b7
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user