diff options
Diffstat (limited to 'tests/functional/dht/test_pipe_character_and_block_device_files.py')
-rw-r--r-- | tests/functional/dht/test_pipe_character_and_block_device_files.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/functional/dht/test_pipe_character_and_block_device_files.py b/tests/functional/dht/test_pipe_character_and_block_device_files.py index 02e7f8f3f..8a3739b83 100644 --- a/tests/functional/dht/test_pipe_character_and_block_device_files.py +++ b/tests/functional/dht/test_pipe_character_and_block_device_files.py @@ -147,9 +147,9 @@ class TestPipeCharacterAndBlockDeviceFiles(GlusterBaseClass): self.assertTrue(ret, "Unable to find file {} on brick {}" .format(fname, path)) brick_text = brick_path.split('/')[:-1] - brick_text[0] = gethostbyname(brick_text[0][:-1]) + ":" - present_brick_list.append( - '/'.join(brick_text)) + if brick_text[0][0:2].isdigit(): + brick_text[0] = gethostbyname(brick_text[0][:-1]) + ":" + present_brick_list.append('/'.join(brick_text)) # Check on other bricks where file doesn't exist brick_list = get_all_bricks(self.mnode, self.volname) |