mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb-build: Install CTDB tests correctly from toplevel
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12547 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Thu Feb 2 08:25:57 CET 2017 on sn-devel-144
This commit is contained in:
parent
a24ba3e408
commit
ce9b72c17a
@ -850,8 +850,13 @@ def build(bld):
|
||||
'tool'
|
||||
]
|
||||
|
||||
if bld.env.standalone_ctdb:
|
||||
testdir = 'tests'
|
||||
else:
|
||||
testdir = 'ctdb/tests'
|
||||
|
||||
for t in test_subdirs:
|
||||
files = SUBDIR_MODE('tests/%s' % t, trim_path='tests')
|
||||
files = SUBDIR_MODE('%s/%s' % (testdir, t), trim_path=testdir)
|
||||
for fmode in files:
|
||||
bld.INSTALL_FILES(bld.env.CTDB_TEST_DATADIR, 'tests/%s' % fmode[0],
|
||||
destname=fmode[0], chmod=fmode[1])
|
||||
|
Loading…
Reference in New Issue
Block a user