Skip to content

Commit 4844ac3

Browse files
author
Blanca Fuentes Monjas
committed
Fix tests
1 parent d7968f1 commit 4844ac3

File tree

6 files changed

+41
-0
lines changed

6 files changed

+41
-0
lines changed

reframe/core/launchers/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,7 @@ def __init__(self, target_launcher, wrapper_command, wrapper_options=None):
149149

150150
def command(self, job):
151151
return self._wrapper_command + self._target_launcher.command(job)
152+
153+
@classmethod
154+
def validate(cls):
155+
return cls._target_launcher.validate()

reframe/core/schedulers/flux.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ def feats_access_option(self, node_feats):
151151
'flux backend does not support configuration autodetection'
152152
)
153153

154+
def build_context(self, node_feats):
155+
raise NotImplementedError(
156+
'flux backend does not support configuration autodetection'
157+
)
158+
154159
def wait(self, job):
155160
'''Wait until a job is finished.'''
156161

reframe/core/schedulers/local.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ def feats_access_option(self, node_feats):
9696
'local backend does not support configuration autodetection'
9797
)
9898

99+
def build_context(self, node_feats):
100+
raise NotImplementedError(
101+
'local backend does not support configuration autodetection'
102+
)
103+
99104
def _kill_all(self, job):
100105
'''Send SIGKILL to all the processes of the spawned job.'''
101106
try:

reframe/core/schedulers/pbs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ def feats_access_option(self, node_feats):
153153
'pbs backend does not support configuration autodetection'
154154
)
155155

156+
def build_context(self, node_feats):
157+
raise NotImplementedError(
158+
'pbs backend does not support configuration autodetection'
159+
)
160+
156161
def submit(self, job):
157162
cmd_parts = ['qsub']
158163
if self._sched_access_in_submit:

reframe/core/schedulers/ssh.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,16 @@ def filternodes(self, job, nodes):
234234
else:
235235
return [AlwaysIdleNode(h) for h in self._free_hosts]
236236

237+
def feats_access_option(self, node_feats):
238+
raise NotImplementedError(
239+
'ssh backend does not support configuration autodetection'
240+
)
241+
242+
def build_context(self, node_feats):
243+
raise NotImplementedError(
244+
'ssh backend does not support configuration autodetection'
245+
)
246+
237247
@classmethod
238248
def validate(cls) -> Union[str, bool]:
239249
try:

unittests/test_launchers.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,21 @@ def allnodes(self):
5656
def filternodes(self, job, nodes):
5757
pass
5858

59+
def feats_access_option(self, node_feats):
60+
pass
61+
62+
def build_context(self, modules_system, launcher,
63+
exclude_feats, detect_containers,
64+
prefix, sched_options, time_limit):
65+
pass
66+
5967
def poll(self, *jobs):
6068
pass
6169

70+
@classmethod
71+
def validate(cls):
72+
pass
73+
6274
def _make_job(launcher, *args, **kwargs):
6375
return Job.create(FakeJobScheduler(), launcher,
6476
'fake_job', *args, **kwargs)

0 commit comments

Comments
 (0)