diff options
author | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-01-04 17:57:02 -0500 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-01-04 17:57:02 -0500 |
commit | 5bc2a7ab2a8cde3bddc9f4b6e0087057c965667f (patch) | |
tree | 2519bc824bbf09bed8300520fad47af713329448 /test/suite/test_txn08.py | |
parent | 344a714c3dd78c5ed86cdb9401d30cb90e40e765 (diff) | |
parent | 7715f49ee9ee394f2111fd94bc419aa38b28c90a (diff) | |
download | mongo-5bc2a7ab2a8cde3bddc9f4b6e0087057c965667f.tar.gz |
Merge pull request #2348 from wiredtiger/wt-2142-test-cleanup
WT-2142 test cleanup
Diffstat (limited to 'test/suite/test_txn08.py')
-rw-r--r-- | test/suite/test_txn08.py | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/test/suite/test_txn08.py b/test/suite/test_txn08.py index 84dce5300c2..36253856285 100644 --- a/test/suite/test_txn08.py +++ b/test/suite/test_txn08.py @@ -32,7 +32,7 @@ import fnmatch, os, shutil, run, time from suite_subprocess import suite_subprocess -from wiredtiger import wiredtiger_open, stat +from wiredtiger import stat from wtscenario import multiply_scenarios, number_scenarios import wttest @@ -41,24 +41,10 @@ class test_txn08(wttest.WiredTigerTestCase, suite_subprocess): tablename = 'test_txn08' uri = 'table:' + tablename - # Overrides WiredTigerTestCase - def setUpConnectionOpen(self, dir): - self.home = dir - # Cycle through the different transaction_sync values in a - # deterministic manner. - self.txn_sync = '(method=dsync,enabled)' - conn_params = \ - 'log=(archive=false,enabled,file_max=%s)' % self.logmax + \ - ',create,error_prefix="%s: ",' % self.shortid() + \ - 'transaction_sync="%s",' % self.txn_sync - # print "Creating conn at '%s' with config '%s'" % (dir, conn_params) - try: - conn = wiredtiger_open(dir, conn_params) - except wiredtiger.WiredTigerError as e: - print "Failed conn at '%s' with config '%s'" % (dir, conn_params) - self.pr(`conn`) - self.session2 = conn.open_session() - return conn + # Turn on logging for this test. + def conn_config(self, dir): + return 'log=(archive=false,enabled,file_max=%s),' % self.logmax + \ + 'transaction_sync="(method=dsync,enabled)"' def test_printlog_unicode(self): # print "Creating %s with config '%s'" % (self.uri, self.create_params) |