diff options
-rw-r--r-- | tests/functional/dht/test_negative_exercise_add_brick_command.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/functional/dht/test_negative_exercise_add_brick_command.py b/tests/functional/dht/test_negative_exercise_add_brick_command.py index 0824b1f14..aab671ff7 100644 --- a/tests/functional/dht/test_negative_exercise_add_brick_command.py +++ b/tests/functional/dht/test_negative_exercise_add_brick_command.py @@ -75,9 +75,9 @@ class ExerciseAddbrickCommand(GlusterBaseClass): self.all_servers_info) cmd = ("gluster volume add-brick %s " % (' '.join(bricks_list))) g.log.info("Adding bricks without specifying volume name") - _, _, err = g.run(self.mnode, cmd) - self.assertIn("does not exist", err, "add-brick is successful") - g.log.info("Volume add-brick failed with error %s ", err) + ret, _, _ = g.run(self.mnode, cmd) + self.assertTrue(ret, "add-brick is successful") + g.log.info("Volume %s: add-brick failed", self.volname) def test_add_duplicate_brick(self): """Test add-bricks to the volume which are already part of the volume |