selftest: Drop dummy environment variables for CTDB daemons
authorMartin Schwenke <martin@meltin.net>
Wed, 28 Oct 2020 22:05:37 +0000 (09:05 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 2 Nov 2020 10:20:45 +0000 (10:20 +0000)
This existed to avoid UID_WRAPPER_ROOT=1 causing ctdbd to fail to
chown the socket.  The chown is no longer done in test mode so remove
this confusing hack.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Mon Nov  2 10:20:45 UTC 2020 on sn-devel-184

selftest/target/Samba3.pm

index cfa2677a673ed8b6c86a671af822d29ae0f07116..5623e2a149fb5225b4ee84b994c1372feca6efde 100755 (executable)
@@ -3414,20 +3414,13 @@ sub check_or_start_ctdb($$) {
 
                my $cmd = "ctdb/tests/local_daemons.sh";
                my @full_cmd = ("$cmd", "$prefix", "start", "$i");
-               # Dummy environment variables to avoid
-               # Samba3::get_env_for_process() from generating them
-               # and including UID_WRAPPER_ROOT=1, which causes
-               # "Unable to secure ctdb socket" error.
-               my $env_vars = {
-                       CTDB_DUMMY => "1",
-               };
                my $daemon_ctx = {
                        NAME => "ctdbd",
                        BINARY_PATH => $cmd,
                        FULL_CMD => [ @full_cmd ],
                        TEE_STDOUT => 1,
                        LOG_FILE => "/dev/null",
-                       ENV_VARS => $env_vars,
+                       ENV_VARS => {},
                };
 
                print "STARTING CTDBD (node ${i})\n";