From bb2f0a5bb46071f74c56f56224383c9a01233ece Mon Sep 17 00:00:00 2001 From: Vasileios Karakasis Date: Thu, 7 May 2020 16:17:31 +0200 Subject: [PATCH 1/2] Use absolute paths in stage/output prefixes --- reframe/core/runtime.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/reframe/core/runtime.py b/reframe/core/runtime.py index 264d905325..0846d95feb 100644 --- a/reframe/core/runtime.py +++ b/reframe/core/runtime.py @@ -119,17 +119,21 @@ def timestamp(self): def output_prefix(self): '''The output prefix directory of ReFrame.''' if self.outputdir: - return os.path.join(self.outputdir, self.timestamp) + ret = os.path.join(self.outputdir, self.timestamp) else: - return os.path.join(self.prefix, 'output', self.timestamp) + ret = os.path.join(self.prefix, 'output', self.timestamp) + + return os.path.abspath(ret) @property def stage_prefix(self): '''The stage prefix directory of ReFrame.''' if self.stagedir: - return os.path.join(self.stagedir, self.timestamp) + ret = os.path.join(self.stagedir, self.timestamp) else: - return os.path.join(self.prefix, 'stage', self.timestamp) + ret = os.path.join(self.prefix, 'stage', self.timestamp) + + return os.path.abspath(ret) def make_stagedir(self, *dirs, wipeout=True): return self._makedir(self.stage_prefix, From 3a9b3d23a0affced1f07575b46a2334559040ad1 Mon Sep 17 00:00:00 2001 From: Vasileios Karakasis Date: Fri, 8 May 2020 00:07:48 +0200 Subject: [PATCH 2/2] Remove printing of perflogdir. - This is specific to the filelog log handler and can be retrieved with the `--show-config` option. --- reframe/frontend/cli.py | 1 - 1 file changed, 1 deletion(-) diff --git a/reframe/frontend/cli.py b/reframe/frontend/cli.py index acff872003..53fe6fd982 100644 --- a/reframe/frontend/cli.py +++ b/reframe/frontend/cli.py @@ -440,7 +440,6 @@ def print_infoline(param, value): f"{':'.join(loader.load_path)!r}") print_infoline('stage directory', repr(rt.stage_prefix)) print_infoline('output directory', repr(rt.output_prefix)) - print_infoline('performance logs', repr(rt.perflogdir)) printer.info('') try: # Locate and load checks