summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvamahaja <vamahaja@redhat.com>2020-04-23 18:29:44 +0530
committerVaibhav Mahajan <vamahaja@redhat.com>2020-04-24 06:12:59 +0000
commitdc6b360a99845af6cb77ff1626bd5ec6b9730eb3 (patch)
treec873932ebe7c790686676b338bfc4a0a6d3311ac /tests
parent200913ce74823f4f87519d1e36f4201b4eeb55bc (diff)
[TestFix] Fix gluster-block log file path
Change-Id: I2241088612178afc1be188149e97b9951e07efc1 Signed-off-by: vamahaja <vamahaja@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/functional/provisioning/test_dynamic_provisioning_block.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/functional/provisioning/test_dynamic_provisioning_block.py b/tests/functional/provisioning/test_dynamic_provisioning_block.py
index 6a3b6b7..cc6673a 100755
--- a/tests/functional/provisioning/test_dynamic_provisioning_block.py
+++ b/tests/functional/provisioning/test_dynamic_provisioning_block.py
@@ -283,10 +283,7 @@ class TestDynamicProvisioningBlockP0(GlusterBlockBaseClass):
gluster_pods = oc_get_pods(
self.ocp_client[0], selector="glusterfs-node=pod")
- if gluster_pods:
- cmd = "tail -n 5 /var/log/glusterfs/gluster-block/%s.log"
- else:
- cmd = "tail -n 5 /var/log/gluster-block/%s.log"
+ cmd = "tail -n 5 /var/log/glusterfs/gluster-block/%s.log"
for g_host in g_hosts:
for log in logs:
out = cmd_run_on_gluster_pod_or_node(