[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

Török Edvin edwin at clamav.net
Sun Apr 4 01:27:47 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 9d1e3f6bde7502fead21bbf8056d4ee5f18b73d4
Author: Török Edvin <edwin at clamav.net>
Date:   Wed Mar 31 15:36:23 2010 +0300

    Fix print of test log when unit test fails (bb #1838).
    
    It was printing the wrong logfile (the one from the successful run).

diff --git a/unit_tests/check_common.sh b/unit_tests/check_common.sh
index 564e6e1..25857ca 100644
--- a/unit_tests/check_common.sh
+++ b/unit_tests/check_common.sh
@@ -267,10 +267,16 @@ test_clamd1() {
 	scan_failed clamdscan-multiscan.log "clamd did not detect all testfiles correctly in multiscan mode!"
     fi
     if test "$NFILES" -ne "0$NINFECTED_FDPASS"; then
-	scan_failed clamdscan-multiscan.log "clamd did not detect all testfiles correctly in fdpass mode!"
+	scan_failed clamdscan-fdpass.log "clamd did not detect all testfiles correctly in fdpass mode!"
     fi
     if test "$NFILES" -ne "0$NINFECTED_MULTI_FDPASS"; then
-	scan_failed clamdscan-multiscan.log "clamd did not detect all testfiles correctly in fdpass+multiscan mode!"
+	scan_failed clamdscan-multiscan-fdpass.log "clamd did not detect all testfiles correctly in fdpass+multiscan mode!"
+    fi
+    if test "$NFILES" -ne "0$NINFECTED_STREAM"; then
+	scan_failed clamdscan-stream.log "clamd did not detect all testfiles correctly in stream mode!"
+    fi
+    if test "$NFILES" -ne "0$NINFECTED_MULTI_STREAM"; then
+	scan_failed clamdscan-multiscan-stream.log "clamd did not detect all testfiles correctly in multiscan+stream mode!"
     fi
     # Test HeuristicScanPrecedence off feature
     run_clamdscan ../clam-phish-exe

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list