From 26c8ba9237ecac6016ebb9b184ee4cda76703664 Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Fri, 13 Sep 2013 14:44:31 -0400 Subject: If the comparison fails, the test should fail, too. --- test/suite/test_backup03.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/suite/test_backup03.py') diff --git a/test/suite/test_backup03.py b/test/suite/test_backup03.py index d4809b1469b..6dfe53837fd 100644 --- a/test/suite/test_backup03.py +++ b/test/suite/test_backup03.py @@ -48,18 +48,18 @@ class test_backup_target(wttest.WiredTigerTestCase, suite_subprocess): # we do a hot backup of one or more of the objects and compare the original # to the backup to confirm the backup is correct. pfx = 'test_backup' - objs = [ # Objects + objs = [ # Objects ('table:' + pfx + '.1', simple_populate, 0), ( 'lsm:' + pfx + '.2', simple_populate, 1), ('table:' + pfx + '.3', complex_populate, 2), ('table:' + pfx + '.4', complex_populate_lsm, 3), ] list = [ - #('1', dict(big=0,list=[0])), # Target objects individually + #('1', dict(big=0,list=[0])), # Target objects individually #('2', dict(big=1,list=[1])), #('3', dict(big=2,list=[2])), #('4', dict(big=3,list=[3])), - #('5a', dict(big=0,list=[0,2])), # Target groups of objects + #('5a', dict(big=0,list=[0,2])), # Target groups of objects #('5b', dict(big=2,list=[0,2])), #('6a', dict(big=1,list=[1,3])), #('6b', dict(big=3,list=[1,3])), @@ -77,10 +77,10 @@ class test_backup_target(wttest.WiredTigerTestCase, suite_subprocess): # Populate a set of objects. def populate(self): for i in self.objs: - if self.big == i[2]: - rows = 500000 # Big object - else: - rows = 1000 # Small object + if self.big == i[2]: + rows = 500000 # Big object + else: + rows = 1000 # Small object i[1](self, i[0], 'key_format=S', rows) # Backup needs a checkpoint self.session.checkpoint(None) @@ -89,7 +89,7 @@ class test_backup_target(wttest.WiredTigerTestCase, suite_subprocess): def compare(self, uri): self.runWt(['dump', uri], outfilename='orig') self.runWt(['-h', self.dir, 'dump', uri], outfilename='backup') - compare_files(self, 'orig', 'backup') + self.assertEqual(True, compare_files(self, 'orig', 'backup')) # Check that a URI doesn't exist, both the meta-data and the file names. def confirmPathDoesNotExist(self, uri): -- cgit v1.2.1