diff options
Diffstat (limited to 'tests/functional')
| -rw-r--r-- | tests/functional/disperse/test_ec_truncate_file_with_brick_down.py | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/functional/disperse/test_ec_truncate_file_with_brick_down.py b/tests/functional/disperse/test_ec_truncate_file_with_brick_down.py index c4daf0a82..c0db19122 100644 --- a/tests/functional/disperse/test_ec_truncate_file_with_brick_down.py +++ b/tests/functional/disperse/test_ec_truncate_file_with_brick_down.py @@ -109,8 +109,8 @@ class TestEcTruncateFileWithBrickDown(GlusterBaseClass):          # write data to the file          cmd = ('''python -c "import os, sys;fd = os.open('{}', os.O_RDWR) ;''' -               '''os.write(fd, 'This is test after truncate'); os.close(fd)"''' -               .format(file_name)) +               '''os.write(fd, 'This is test after truncate'.encode());''' +               ''' os.close(fd)"'''.format(file_name))          ret, _, err = g.run(self.mounts[0].client_system, cmd)          self.assertEqual(ret, 0, err)          g.log.info("Data written successfully on to the file") @@ -119,6 +119,7 @@ class TestEcTruncateFileWithBrickDown(GlusterBaseClass):          ret = monitor_heal_completion(self.mnode, self.volname)          self.assertTrue(ret, "Heal pending for file {}".format(file_name)) -        # check for any crashes -        ret = is_core_file_created(self.servers, test_timestamp) -        self.assertTrue(ret, "Cores found on the servers") +        # check for any crashes on servers and client +        for nodes in (self.servers, [self.clients[0]]): +            ret = is_core_file_created(nodes, test_timestamp) +            self.assertTrue(ret, "Cores found on the {} nodes".format(nodes))  | 
