aboutsummaryrefslogtreecommitdiffstats
path: root/main/ldb/disable-python-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/ldb/disable-python-tests.patch')
-rw-r--r--main/ldb/disable-python-tests.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/ldb/disable-python-tests.patch b/main/ldb/disable-python-tests.patch
new file mode 100644
index 0000000000..040557402b
--- /dev/null
+++ b/main/ldb/disable-python-tests.patch
@@ -0,0 +1,27 @@
+Do not run python tests, they take eternity to finish.
+
+--- a/wscript
++++ b/wscript
+@@ -370,21 +370,13 @@
+ ret = samba_utils.RUN_COMMAND(cmd)
+ print("testsuite returned %d" % ret)
+
+- tmp_dir = os.path.join(test_prefix, 'tmp')
+- if not os.path.exists(tmp_dir):
+- os.mkdir(tmp_dir)
+- pyret = samba_utils.RUN_PYTHON_TESTS(
+- ['tests/python/api.py'],
+- extra_env={'SELFTEST_PREFIX': test_prefix})
+- print("Python testsuite returned %d" % pyret)
+-
+ cmocka_ret = 0
+ for test_exe in ['ldb_tdb_mod_op_test',
+ 'ldb_msg_test']:
+ cmd = os.path.join(Utils.g_module.blddir, test_exe)
+ cmocka_ret = cmocka_ret or samba_utils.RUN_COMMAND(cmd)
+
+- sys.exit(ret or pyret or cmocka_ret)
++ sys.exit(ret or cmocka_ret)
+
+ def dist():
+ '''makes a tarball for distribution'''