summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-02-26 09:48:09 -0800
committerelijah <elijah@riseup.net>2016-02-26 09:48:09 -0800
commitbfca1b32e33ccd0f5130bae546148529a3642cc3 (patch)
tree70bf6a3c8887f8f1b35f9a4bf0a130d078e61d18 /tests
parent15ca782e3bcd22f131c2b8745d7fad118b4b8648 (diff)
skip clamd process test if clamav sig file has not yet been downloaded, closes #7683
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