Skip to content

Commit

Permalink
Merge pull request #3 from smoors/pr_to_pr205
Browse files Browse the repository at this point in the history
remove msg and reduce number of subdirs
  • Loading branch information
casparvl authored Nov 21, 2024
2 parents 62b7c88 + b581f05 commit 1a2bf9e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
7 changes: 1 addition & 6 deletions eessi/testsuite/tests/apps/cp2k/cp2k.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

import reframe as rfm
from reframe.core.builtins import parameter, run_after, performance_function, sanity_function, fixture
import reframe.utility.sanity as sn
Expand Down Expand Up @@ -47,10 +45,7 @@ def set_bench_name(self):

@run_after('setup')
def prepare_test(self):
# self.prerun_cmds = [
# f'cp {os.path.join(os.path.dirname(__file__), "input", self.bench_name)}.inp ./'
# ]
self.executable_opts += ['-i', f'{self.stage_files.stagedir}/input/QS/{os.path.basename(self.bench_name)}.inp']
self.executable_opts += ['-i', f'{self.stage_files.stagedir}/{self.bench_name}.inp']

@sanity_function
def assert_energy(self):
Expand Down
10 changes: 5 additions & 5 deletions eessi/testsuite/tests/apps/cp2k/cp2k_staging/cp2k_stage_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ class EESSI_CP2K_stage_input(rfm.RunOnlyRegressionTest):

# Check that all files have been staged correctly
input_file_list = [
'input/QS/H2O-32.inp',
'input/QS/H2O-128.inp',
'input/QS/H2O-512.inp'
'QS/H2O-32.inp',
'QS/H2O-128.inp',
'QS/H2O-512.inp',
]
sn_list = [sn.assert_found('.*', input_file) for input_file in input_file_list]
msg = "input file '%s' seems to be missing"
sanity_patterns = sn.all([
sn.assert_found('.*', input_file, msg % input_file) for input_file in input_file_list
sn.assert_found('.*', input_file, f"input file '{input_file}' seems to be missing")
for input_file in input_file_list
])

0 comments on commit 1a2bf9e

Please sign in to comment.