diff options
Diffstat (limited to 'source4/scripting/devel')
| -rwxr-xr-x | source4/scripting/devel/speedtest.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/scripting/devel/speedtest.py b/source4/scripting/devel/speedtest.py index fed270527a..84d3760c05 100755 --- a/source4/scripting/devel/speedtest.py +++ b/source4/scripting/devel/speedtest.py @@ -35,10 +35,8 @@ samba.ensure_external_module("subunit", "subunit/python") import samba.getopt as options -from ldb import ( - SCOPE_BASE, SCOPE_SUBTREE, LdbError, ERR_NO_SUCH_OBJECT, - ERR_UNWILLING_TO_PERFORM, ERR_INSUFFICIENT_ACCESS_RIGHTS) -from samba.ndr import ndr_pack, ndr_unpack +from ldb import SCOPE_BASE, SCOPE_SUBTREE +from samba.ndr import ndr_unpack from samba.dcerpc import security from samba.auth import system_session @@ -233,9 +231,11 @@ ldb_options = ["modules:paged_searches"] ldb = SamDB(host, credentials=creds, session_info=system_session(), lp=lp, options=ldb_options) runner = SubunitTestRunner() -rc = 0 -if not runner.run(unittest.makeSuite(SpeedTestAddDel)).wasSuccessful(): - rc = 1 -if not runner.run(unittest.makeSuite(AclSearchSpeedTest)).wasSuccessful(): +suite = unittest.TestSuite() +suite.addTests(unittest.makeSuite(SpeedTestAddDel)) +suite.addTests(unittest.makeSuite(AclSearchSpeedTest)) +if not runner.run(suite).wasSuccessful(): rc = 1 +else: + rc = 0 sys.exit(rc) |
