summaryrefslogtreecommitdiff
path: root/ctdb/wscript
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-08-12 22:10:41 +1000
committerAmitay Isaacs <amitay@samba.org>2019-08-14 09:11:35 +0000
commit061656d383772b27607b8feb4a4ea9c988ce17d8 (patch)
tree9bc7c7c45b1d958c0aa857caa517da197e237e85 /ctdb/wscript
parentb1d36e94d2edbab89d7db5055b13689d94b128ad (diff)
downloadsamba-061656d383772b27607b8feb4a4ea9c988ce17d8.tar.gz
ctdb-tests: Simplify test_wrap script
Given other improvements, this is now needlessly complex. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/wscript')
-rw-r--r--ctdb/wscript12
1 files changed, 4 insertions, 8 deletions
diff --git a/ctdb/wscript b/ctdb/wscript
index 03e29e133d8..45207d5548a 100644
--- a/ctdb/wscript
+++ b/ctdb/wscript
@@ -1091,14 +1091,10 @@ def build(bld):
os.path.join('tests/scripts', t),
destname=os.path.join('scripts', t))
- sed_expr = 's@^TEST_SCRIPTS_DIR=.*@&\\nexport TEST_BIN_DIR=\"%s\"@' % (
- bld.env.CTDB_TEST_LIBEXECDIR)
- bld.SAMBA_GENERATOR('ctdb-test-wrap',
- source='tests/scripts/test_wrap',
- target='test_wrap',
- rule='sed -e "%s" ${SRC} > ${TGT}' % sed_expr)
- bld.INSTALL_FILES(bld.env.CTDB_TEST_DATADIR+"/scripts", 'test_wrap',
- destname='test_wrap', chmod=MODE_755)
+ bld.INSTALL_FILES(bld.env.CTDB_TEST_DATADIR,
+ 'tests/scripts/test_wrap',
+ destname='scripts/test_wrap',
+ chmod=MODE_755)
bld.SAMBA_GENERATOR('ctdb-test-script-install-paths',
source='tests/scripts/script_install_paths.sh',