From bfca1b32e33ccd0f5130bae546148529a3642cc3 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 26 Feb 2016 09:48:09 -0800 Subject: skip clamd process test if clamav sig file has not yet been downloaded, closes #7683 --- tests/white-box/mx.rb | 10 +++++++--- 1 file 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 -- cgit v1.2.3