summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@fedoraproject.org>2019-01-18 16:38:03 +0100
committerStefan Metzmacher <metze@samba.org>2019-02-26 13:00:10 +0100
commit50be2c5827482592ee059c9f4000708250be19b0 (patch)
treeea99e7f174ad4c197ee801c2ec1d99e4d5e46c1f /lib
parentba5a93c860af07f2a3534513133702b53c6b63f8 (diff)
downloadsamba-50be2c5827482592ee059c9f4000708250be19b0.tar.gz
tdb: Fix compatibility of wscript with older python
Traceback (most recent call last): File "tdb-1.3.17/third_party/waf/waflib/Scripting.py", line 158, in waf_entry_point run_commands() File "tdb-1.3.17/third_party/waf/waflib/Scripting.py", line 251, in run_commands ctx = run_command(cmd_name) File "tdb-1.3.17/third_party/waf/waflib/Scripting.py", line 235, in run_command ctx.execute() File "tdb-1.3.17/third_party/waf/waflib/Context.py", line 204, in execute self.recurse([os.path.dirname(g_module.root_path)]) File "tdb-1.3.17/third_party/waf/waflib/Context.py", line 286, in recurse user_function(self) File "tdb-1.3.17/wscript", line 225, in testonly cmd = "BINDIR={} {}".format(blddir, sh_test) ValueError: zero length field name in format Signed-off-by: Lukas Slebodnik <lslebodn@fedoraproject.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sun Jan 20 03:49:59 CET 2019 on sn-devel-144 (cherry picked from commit 0628ca2a558871402f9a17cc7f7a0c69d857ae19)
Diffstat (limited to 'lib')
-rw-r--r--lib/tdb/wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/wscript b/lib/tdb/wscript
index 6a6adabc4c1..2c31f696808 100644
--- a/lib/tdb/wscript
+++ b/lib/tdb/wscript
@@ -222,7 +222,7 @@ def testonly(ctx):
sh_tests = ["test/test_tdbbackup.sh test/jenkins-be-hash.tdb"]
for sh_test in sh_tests:
- cmd = "BINDIR={} {}".format(blddir, sh_test)
+ cmd = "BINDIR=%s %s" % (blddir, sh_test)
print("shell test: " + cmd)
ret = samba_utils.RUN_COMMAND(cmd)
if ret != 0: