Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions reframe/core/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def modulecmd(self, *args):
def _execute(self, cmd, *args):
modulecmd = self.modulecmd(cmd, *args)
completed = osext.run_command(modulecmd)
if re.search(r'ERROR', completed.stderr) is not None:
if re.search(r'\bERROR\b', completed.stderr) is not None:
raise SpawnedProcessError(modulecmd,
completed.stdout,
completed.stderr,
Expand Down Expand Up @@ -769,7 +769,7 @@ def modulecmd(self, *args):
def _execute(self, cmd, *args):
modulecmd = self.modulecmd(cmd, *args)
completed = osext.run_command(modulecmd)
if re.search(r'ERROR', completed.stderr) is not None:
if re.search(r'\bERROR\b', completed.stderr) is not None:
raise SpawnedProcessError(modulecmd,
completed.stdout,
completed.stderr,
Expand Down
1 change: 1 addition & 0 deletions unittests/modules/testmod_bar
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ conflict testmod_foo
conflict testmod_boo

setenv TESTMOD_BAR "BAR"
setenv TESTMOD_ERROR "BARERROR"