selftest: Make lockdir available in test environment
authorChristof Schmitt <cs@samba.org>
Thu, 16 Feb 2017 23:23:43 +0000 (16:23 -0700)
committerChristof Schmitt <cs@samba.org>
Mon, 8 May 2017 19:08:24 +0000 (21:08 +0200)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
selftest/selftest.pl
selftest/target/Samba3.pm

index 3ab07a7a741d667d453ee32f62430d3cbd2304a3..f05fc5cde494657cb7c8fcf963849b91b31186e8 100755 (executable)
@@ -863,6 +863,7 @@ my @exported_envvars = (
        "DNS_FORWARDER2",
        "RESOLV_CONF",
        "UNACCEPTABLE_PASSWORD",
+       "LOCK_DIR",
 
        # nss_wrapper
        "NSS_WRAPPER_PASSWD",
index decfa0ea440558b81bafed71fc7c1793759d1a73..6d5758403746987276b3febdfbaa231acd98bfc3 100755 (executable)
@@ -2106,6 +2106,7 @@ force_user:x:$gid_force_user:
        $ret{SMBD_TEST_LOG_POS} = 0;
        $ret{SERVERCONFFILE} = $conffile;
        $ret{CONFIGURATION} ="-s $conffile";
+       $ret{LOCK_DIR} = $lockdir;
        $ret{SERVER} = $server;
        $ret{USERNAME} = $unix_name;
        $ret{USERID} = $unix_uid;