Allow us to vary the log-level, so we can run at level 1 normally,
[kai/samba.git] / testsuite / build_farm / basicsmb.fns
index 3929c48a3995c3654e6f42626fbfd7d7510583a4..592cb62de4893a3d105de9d36fc2173eca69c47f 100644 (file)
@@ -2,7 +2,8 @@ test_smb_conf_setup() {
        cat basicsmb.smb.conf.template | \
               sed "s|PREFIX|$prefix|g" | \
              sed "s|BUILD_FARM|$pwd|g" | \
-             sed "s|WHOAMI|$whoami|g" \
+             sed "s|WHOAMI|$whoami|g" | \
+             sed "s|LOGLEVEL|$loglevel|g" \
         > $prefix/lib/smb.conf
 
        echo "127.0.0.1    localhost">$prefix/lib/lmhosts
@@ -10,10 +11,10 @@ test_smb_conf_setup() {
     echo "127.0.0.1    USER">>$prefix/lib/lmhosts
     echo "127.0.0.1    SERVER">>$prefix/lib/lmhosts
     echo "127.0.0.1    DOMAIN">>$prefix/lib/lmhosts
-    cp -f basicsmb.smb.conf.share $prefix/lib/smb.conf.share
-    cp -f basicsmb.smb.conf.user $prefix/lib/smb.conf.user
-    cp -f basicsmb.smb.conf.server $prefix/lib/smb.conf.server
-    cp -f basicsmb.smb.conf.domain $prefix/lib/smb.conf.domain
+    cp basicsmb.smb.conf.share $prefix/lib/smb.conf.share
+    cp basicsmb.smb.conf.user $prefix/lib/smb.conf.user
+    cp basicsmb.smb.conf.server $prefix/lib/smb.conf.server
+    cp basicsmb.smb.conf.domain $prefix/lib/smb.conf.domain
     touch $prefix/lib/smb.conf.
     touch $prefix/lib/smb.conf.localhost
 }