diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2013-12-01 23:20:34 +0000 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2013-12-06 05:21:03 +0100 |
| commit | 4111f31eac942fb243b3baa41a95914a4c8587c2 (patch) | |
| tree | 0c6f605c2239134af5d27d8f37da207befb42fdb /lib/ntdb/wscript | |
| parent | 28b5b7e28ed5a1b564851e56e8b6b3202d9f1ea9 (diff) | |
| download | samba-4111f31eac942fb243b3baa41a95914a4c8587c2.tar.gz samba-4111f31eac942fb243b3baa41a95914a4c8587c2.tar.xz samba-4111f31eac942fb243b3baa41a95914a4c8587c2.zip | |
pyntdb: Don't allow access after a database is closed.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/ntdb/wscript')
| -rw-r--r-- | lib/ntdb/wscript | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/ntdb/wscript b/lib/ntdb/wscript index de67615446..d4828b02fb 100644 --- a/lib/ntdb/wscript +++ b/lib/ntdb/wscript @@ -92,6 +92,7 @@ def configure(conf): 'test/api-record-expand.c', 'test/api-simple-delete.c', 'test/api-summary.c'] + conf.env.NTDB_TEST_API_PY=['test/python-api.py'] conf.env.NTDB_TEST_API_HELPER_SRC=['test/helpapi-external-agent.c'] conf.env.NTDB_TEST_RUN_HELPER_SRC=['test/helprun-external-agent.c', 'test/helprun-layout.c'] @@ -253,6 +254,18 @@ def testonly(ctx): samba_utils.RUN_COMMAND("cat " + os.path.join(testdir, 'test-output')) ecode = ret; break; + if not env.disable_python: + for f in env.NTDB_TEST_API_PY: + print("..." + f) + cmd = "cd " + testdir + " && PYTHONPATH=%s %s %s" % ( + os.path.abspath(os.path.join(Utils.g_module.blddir, "python")), + env["PYTHON"], os.path.abspath(f)) + print cmd + ret = samba_utils.RUN_COMMAND(cmd) + if ret != 0: + print("%s (%s) failed:" % (name, f)) + ecode = ret + break sys.exit(ecode) |
