Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Test-tag: test_bashcmd
Skip-fault-injection-test: true
Allow-unstable-test: true

Required-githooks: true

Signed-off-by: Dalton Bohning <dalton.bohning@intel.com>
  • Loading branch information
daltonbohning committed Aug 8, 2024
1 parent 5e56df4 commit 9c57e36
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/tests/ftest/dfuse/bash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -155,6 +156,14 @@ def test_bashcmd(self):
:avocado: tags=dfuse,dfs
: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):
Expand Down
4 changes: 3 additions & 1 deletion src/tests/ftest/util/dfuse_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9c57e36

Please sign in to comment.