]> source.dussan.org Git - rspamd.git/commitdiff
Fix scan file functional test.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 7 Oct 2015 16:17:02 +0000 (17:17 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 7 Oct 2015 16:17:02 +0000 (17:17 +0100)
src/libserver/task.c
test/functional/cases/scan_file.sh

index 907260af2740796c69374d8bbf6982352026ce48..6dd00b8bfec363c4024df636e283cf0dec0b8ffa 100644 (file)
@@ -280,6 +280,8 @@ rspamd_task_load_message (struct rspamd_task *task,
        }
 
        if (tok) {
+               debug_task ("want to scan file %T", tok);
+
                r = rspamd_strlcpy (filepath, tok->begin,
                                MIN (sizeof (filepath), tok->len + 1));
 
index 1a06067858e99d3104e612abc109db2a8b29a712..107d335e4ebfb72617d6eb29d2fe754d53a663b0 100644 (file)
@@ -4,9 +4,6 @@
 
 export RSPAMD_CONFIG="$TEST_DIRNAME/configs/trivial.conf"
 run_rspamd
-run perl "$TEST_DIRNAME/cases/scan_file.pl" "$TEST_DIRNAME/messages/gtube.eml"
-check_output 'GTUBE'
-
 run perl "$TEST_DIRNAME/cases/scan_file.pl" "file=$TEST_DIRNAME/messages/gtube.eml"
 check_output 'GTUBE'
 
@@ -18,8 +15,6 @@ check_output 'GTUBE'
 
 # Hex encode every character
 _hex_name=`printf "$TEST_DIRNAME/messages/gtube.eml" | hexdump -v -e '/1 "%02x"' | sed 's/\(..\)/%\1/g'`
-run perl "$TEST_DIRNAME/cases/scan_file.pl" "${_hex_name}"
-check_output 'GTUBE'
 
 run perl "$TEST_DIRNAME/cases/scan_file.pl" "file=${_hex_name}"
 check_output 'GTUBE'