From 48406ea39df875540ff6b32148732f3d28e34b14 Mon Sep 17 00:00:00 2001 From: Prasad Desala Date: Thu, 15 Nov 2018 17:39:17 +0530 Subject: TC: test_negative_exercise_add_brick Fixed the validation code in test_add_brick_without_volname Change-Id: I5449b6472cc2b6644b833be47233d344a9dd8d1b Signed-off-by: Prasad Desala --- tests/functional/dht/test_negative_exercise_add_brick_command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/functional/dht') 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 -- cgit