Revert "TODO: ctdb: fix autotest with socket-wrapper installed in the system"
authorMichael Adam <obnox@samba.org>
Thu, 7 Jul 2016 08:30:08 +0000 (10:30 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 8 Jul 2016 11:46:47 +0000 (13:46 +0200)
This reverts commit aee6b25b722a2ebea5b7dac88eccb1ccadcb6648.

ctdb/wscript

index 73a897114450c5a35dff58ada1ec2ad8546d2086..3eae06653dd759fd3add75f965cb5226812ed437 100755 (executable)
@@ -107,7 +107,6 @@ def configure(conf):
     conf.RECURSE('lib/tdb')
     if conf.env.standalone_ctdb or conf.CONFIG_GET('ENABLE_SELFTEST'):
         conf.RECURSE('lib/socket_wrapper')
-        conf.env.SOCKET_WRAPPER_SO_PATH = conf.CONFIG_GET('LIBSOCKET_WRAPPER_SO_PATH')
 
     conf.CHECK_HEADERS('sched.h')
     conf.CHECK_HEADERS('procinfo.h')
@@ -817,15 +816,7 @@ def test(ctx):
 
 
 def autotest(ctx):
-    env = samba_utils.LOAD_ENVIRONMENT()
-    swrap_so_path = env.SOCKET_WRAPPER_SO_PATH
-    if not swrap_so_path:
-        swrap_so_path = "libsocket-wrapper.so"
-    elif env.standalone_ctdb:
-        # Need to override the path here, otherwise the 'ctdb' subdir is
-        # missing and I don't know why...
-        swrap_so_path = '%s/bin/shared/libsocket-wrapper.so' % os.getcwd()
-    ld = 'LD_PRELOAD=%s' % swrap_so_path
+    ld = 'LD_PRELOAD=%s/bin/shared/libsocket-wrapper.so' % os.getcwd()
     cmd = '%s tests/run_tests.sh -e -S -C' % ld
     ret = samba_utils.RUN_COMMAND(cmd)
     if ret != 0: