r19590: Make it less noisy to run the session_key test outside 'make test',
authorAndrew Bartlett <abartlet@samba.org>
Mon, 6 Nov 2006 23:19:00 +0000 (23:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:24:58 +0000 (14:24 -0500)
for example against a remote host.

Andrew Bartlett

source/script/tests/test_functions.sh

index ccf383668c0b92795be68aaadda38f81c7e8544f..6999748c88c02201c51ba9b75312e8e895cfd3b8 100755 (executable)
@@ -96,7 +96,7 @@ testit() {
        TEST_PCAP="$PREFIX/test_${shname}_${UNIQUE_PID}.pcap"
        trap "rm -f $TEST_LOG $TEST_PCAP" EXIT
 
-        if [ -z "$smbd_log_size" ]; then
+        if [ -n "$SMBD_TEST_LOG" -a -z "$smbd_log_size" ]; then
            smbd_log_size=`wc -l < $SMBD_TEST_LOG`;
        fi