From 54a982950c55bc18b20cce1ef3009c29c9be0723 Mon Sep 17 00:00:00 2001 From: Dalton Bohning Date: Tue, 6 Aug 2024 14:38:20 +0000 Subject: [PATCH] debug Test-tag: test_bashcmd Skip-fault-injection-test: true Allow-unstable-test: true Required-githooks: true Signed-off-by: Dalton Bohning --- src/tests/ftest/dfuse/bash.py | 11 ++++++++++- src/tests/ftest/util/dfuse_utils.py | 4 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/tests/ftest/dfuse/bash.py b/src/tests/ftest/dfuse/bash.py index 964d0295954..b28b00be168 100644 --- a/src/tests/ftest/dfuse/bash.py +++ b/src/tests/ftest/dfuse/bash.py @@ -8,7 +8,7 @@ from apricot import TestWithServers from dfuse_utils import get_dfuse, start_dfuse from host_utils import get_local_host -from run_utils import run_remote +from run_utils import run_local, run_remote class DfuseBashCmd(TestWithServers): @@ -68,6 +68,7 @@ def run_bashcmd(self, il_lib=None, compatible_mode=False): params['disable_caching'] = True params['disable_wb_cache'] = True start_dfuse(self, dfuse, pool, container, **params) + return fuse_root_dir = dfuse.mount_dir.value abs_dir_path = os.path.join(fuse_root_dir, "test") @@ -158,6 +159,14 @@ def test_bashcmd(self): :avocado: tags=dfs,dfuse :avocado: tags=DfuseBashCmd,test_bashcmd """ + self.log.info("local export -p") + run_local(self.log, "export -p") + + self.log.info("remote detach=True export -p") + run_remote(self.log, get_local_host(), "export -p", detach=True) + + self.log.info("remote detach=False export -p") + run_remote(self.log, get_local_host(), "export -p", detach=False) self.run_bashcmd() def test_bashcmd_ioil(self): diff --git a/src/tests/ftest/util/dfuse_utils.py b/src/tests/ftest/util/dfuse_utils.py index 1d545a2f5bc..88b3a31976a 100644 --- a/src/tests/ftest/util/dfuse_utils.py +++ b/src/tests/ftest/util/dfuse_utils.py @@ -107,6 +107,8 @@ def _update_mount_state(self): } self.log.info("Checking which hosts have the mount point directory created") + run_remote(self.log, self.hosts, f'stat {self.mount_dir.value}', detach=True) + run_remote(self.log, self.hosts, f'stat {self.mount_dir.value}', detach=False) command = f"test -d {self.mount_dir.value} -a ! -L {self.mount_dir.value}" test_result = self._run_as_owner(self.hosts, command) check_mounted = test_result.passed_hosts @@ -258,7 +260,7 @@ def run(self, check=True, mount_callback=None): self._setup_mount_point() # run dfuse command - result = run_remote(self.log, self.hosts, self.with_exports, timeout=30, detach=True) + result = run_remote(self.log, self.hosts, self.with_exports, timeout=30, detach=False) self._running_hosts.add(result.passed_hosts) if mount_callback: mount_callback(result)