summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-03-31 03:56:24 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-03-31 03:56:24 +0200
commit5f3fcf7a7773737fd87c8ff5530fae2286e88927 (patch)
tree9337d53244a089f1eef9e4d32fd848cca8049eaf /source4/lib/ldb/tests
parent0e77bea165d6db9ca8a138e78f5051234b069789 (diff)
downloadsamba-5f3fcf7a7773737fd87c8ff5530fae2286e88927.tar.gz
samba-5f3fcf7a7773737fd87c8ff5530fae2286e88927.tar.bz2
samba-5f3fcf7a7773737fd87c8ff5530fae2286e88927.zip
s4-python: Install external included packages only if they're not present on the system.
Diffstat (limited to 'source4/lib/ldb/tests')
-rwxr-xr-xsource4/lib/ldb/tests/python/deletetest.py1
-rwxr-xr-xsource4/lib/ldb/tests/python/urgent_replication.py8
2 files changed, 2 insertions, 7 deletions
diff --git a/source4/lib/ldb/tests/python/deletetest.py b/source4/lib/ldb/tests/python/deletetest.py
index 13bec7efae..eff92c5f33 100755
--- a/source4/lib/ldb/tests/python/deletetest.py
+++ b/source4/lib/ldb/tests/python/deletetest.py
@@ -8,6 +8,7 @@ import os
sys.path.append("bin/python")
sys.path.append("../lib/subunit/python")
+sys.path.append("../lib/testtools")
import samba.getopt as options
diff --git a/source4/lib/ldb/tests/python/urgent_replication.py b/source4/lib/ldb/tests/python/urgent_replication.py
index b8df072bf3..28b3a5fa78 100755
--- a/source4/lib/ldb/tests/python/urgent_replication.py
+++ b/source4/lib/ldb/tests/python/urgent_replication.py
@@ -2,16 +2,13 @@
# -*- coding: utf-8 -*-
# This is a port of the original in testprogs/ejs/ldap.js
-import getopt
import optparse
import sys
-import time
-import random
-import base64
import os
sys.path.append("bin/python")
sys.path.append("../lib/subunit/python")
+sys.path.append("../lib/testtools")
import samba.getopt as options
@@ -26,9 +23,6 @@ from samba import glue
from subunit.run import SubunitTestRunner
import unittest
-from samba.ndr import ndr_pack, ndr_unpack
-from samba.dcerpc import security
-
parser = optparse.OptionParser("urgent_replication [options] <host>")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)