Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions reframe/core/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
]


import contextlib
import functools
import glob
import inspect
Expand Down Expand Up @@ -243,7 +244,7 @@ def pipeline_hooks(cls):
#:
#: :type: :class:`str`
#: :default: ``self.name``
descr = variable(str)
descr = variable(str, type(None), value=None)

#: The path to the source file or source directory of the test.
#:
Expand Down Expand Up @@ -338,7 +339,7 @@ def pipeline_hooks(cls):
#:
#: :type: :class:`str`
#: :default: ``os.path.join('.', self.name)``
executable = variable(str)
executable = variable(str, type(None), value=None)

#: List of options to be passed to the :attr:`executable`.
#:
Expand Down Expand Up @@ -811,8 +812,16 @@ def _rfm_init(self, name=None, prefix=None):
if name is not None:
self.name = name

self.descr = self.name
self.executable = os.path.join('.', self.name)
# Pass if descr is a required variable.
with contextlib.suppress(AttributeError):
if self.descr is None:
self.descr = self.name

# Pass if the executable is a required variable.
with contextlib.suppress(AttributeError):
if self.executable is None:
self.executable = os.path.join('.', self.name)

self._perfvalues = {}

# Static directories of the regression check
Expand Down