Failure: test_acl_check_antivirus(Exim4ConfigTest)
Failure: test_acl_check_antivirus(Exim4ConfigTest)
/etc/sympl/test.d/tc_exim4.rb:280:in `block in do_acl_script'
/etc/sympl/test.d/tc_exim4.rb:263:in `open'
/etc/sympl/test.d/tc_exim4.rb:263:in `do_acl_script'
/etc/sympl/test.d/tc_exim4.rb:414:in `test_acl_check_antivirus'
411: system('sync ; date=$(date "+%Y-%m-%d %H:%M:%S") ; systemctl reload clamav-daemon.service ; timeout 120 journalctl -u clamav-daemon.service --since="$date" --follow | while read line ; do if [ $( echo $line | grep -c "[0-9]* signatures" ) -eq 1 ]; then killall "journalctl" 2>&1 >/dev/null ; fi ; done ; sleep 1')
412:
413: # OK the file is there now, so reject (as per default)
=> 414: do_acl_script('exim4_acl_tests/antivirus_reject')
415:
416: # OK, now the file contains "tag" so accept, and tag
417: File.open(File.join(config_dir, "antivirus"),"w+"){|fh| fh.puts("tag my mail")}
ACL test failed after line 21 of exim4_acl_tests/antivirus_reject (OK id=1ptavD-0002QU-1n)
<550> expected but was
<250>
diff:
? 550
? 2
? ?