Skip to content

Commit

Permalink
Merge pull request #208 from bedroge/fix_skipped_reframe_tests
Browse files Browse the repository at this point in the history
Fix broken ReFrame tests
  • Loading branch information
ocaisa authored Jun 24, 2024
2 parents 91d4364 + 783c9f1 commit ae4ba85
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions test/compat_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class RunInGentooPrefixTestError(rfm.core.exceptions.ReframeError):


class RunInGentooPrefixTest(rfm.RunOnlyRegressionTest):
eessi_repo_dir = parameter(
os.environ.get('EESSI_REPO_DIR', EESSI_REPO_DIR)
)
eessi_repo_dir = os.environ.get('EESSI_REPO_DIR', EESSI_REPO_DIR)
eessi_version = parameter(
os.environ.get('EESSI_VERSION', 'latest').split(',')
)
Expand All @@ -28,17 +26,10 @@ def __init__(self):

self.valid_systems = ['*']
self.valid_prog_environs = ['*']
if self.eessi_version == 'latest':
# resolve the "latest" symlink to the actual version
self.eessi_version = os.readlink(os.path.join(eessi_repo_dir, 'latest'))
# 2021.06 did not have the 'versions' subdirectory yet
if self.eessi_version == '2021.06':
self.eessi_repo_dir = eessi_repo_dir
else:
self.eessi_repo_dir = os.path.join(eessi_repo_dir, 'versions')

self.compat_dir = os.path.join(
self.eessi_repo_dir,
'versions',
self.eessi_version,
'compat',
self.eessi_os,
Expand Down Expand Up @@ -174,15 +165,13 @@ def __init__(self):

@rfm.simple_test
class SymlinksToHostFilesTest(RunInGentooPrefixTest):
# see https://github.com/EESSI/compatibility-layer/blob/main/ansible/playbooks/roles/compatibility_layer/defaults/main.yml
symlink_to_host = parameter([
'etc/group',
'etc/passwd',
'etc/hosts',
'etc/nsswitch.conf',
'etc/resolv.conf',
'lib64/libnss_centrifydc.so.2',
'lib64/libnss_ldap.so.2',
'lib64/libnss_sss.so.2',
])

def __init__(self):
Expand Down Expand Up @@ -229,7 +218,7 @@ def __init__(self):
self.command = 'equery has --package glibc EXTRA_EMAKE'

trusted_dir = os.path.join(
eessi_repo_dir,
self.eessi_repo_dir,
'host_injections',
self.eessi_version,
'compat',
Expand Down

0 comments on commit ae4ba85

Please sign in to comment.