Skip to content

Commit

Permalink
minor ux improvement (#1161)
Browse files Browse the repository at this point in the history
Co-authored-by: Pyifan <[email protected]>
  • Loading branch information
Pyifan and Pyifan authored Dec 12, 2024
1 parent 7e19949 commit c363b12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions testplan/common/remote/remote_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ def _define_remote_dirs(self) -> None:
self._remote_plan_runpath,
)
self.logger.info(
"%s remote runpath = %s", self, self._remote_resource_runpath
"%s: remote runpath = %s", self, self._remote_resource_runpath
)
self._working_dirs.local = pwd()
self._working_dirs.remote = self._remote_working_dir()
self.logger.info(
"%s remote working path = %s", self, self._working_dirs.remote
"%s: remote working path = %s", self, self._working_dirs.remote
)

def _remote_working_dir(self) -> None:
Expand Down Expand Up @@ -590,7 +590,7 @@ def _fetch_results(self) -> None:

def _clean_remote(self) -> None:
if self.cfg.clean_remote:
self.logger.debug(
self.logger.user_info(
"Clean root runpath on remote host - %s", self.ssh_cfg["host"]
)

Expand Down
5 changes: 4 additions & 1 deletion testplan/runnable/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,10 @@ def make_runpath_dirs(self):
)

self.logger.user_info(
"Testplan has runpath: %s and pid %s", self._runpath, os.getpid()
"Testplan[%s] has runpath: %s and pid %s",
self.cfg.name,
self._runpath,
os.getpid(),
)

self._scratch = os.path.join(self._runpath, "scratch")
Expand Down

0 comments on commit c363b12

Please sign in to comment.