summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/white-box/mx.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/white-box/mx.rb b/tests/white-box/mx.rb
index 336f78a4..9f577516 100644
--- a/tests/white-box/mx.rb
+++ b/tests/white-box/mx.rb
@@ -38,9 +38,13 @@ class Mx < LeapTest
assert_running 'postfwd2::cache$'
assert_running 'postfwd2::policy$'
assert_running '^/usr/sbin/unbound$'
- assert_running '^/usr/sbin/clamd'
- assert_running '^/usr/sbin/clamav-milter'
- assert_running '^/usr/bin/freshclam'
+ if File.exists?('/var/lib/clamav/daily.cld')
+ assert_running '^/usr/sbin/clamd'
+ assert_running '^/usr/sbin/clamav-milter'
+ assert_running '^/usr/bin/freshclam'
+ else
+ skip "The clamav signature file (/var/lib/clamav/daily.cld) has yet to be downloaded, so clamd is not running."
+ end
pass
end