Skip to content

Commit 9c5345a

Browse files
committed
Add partition modules in remote partitions' autodetecting
1 parent bb779ce commit 9c5345a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

reframe/frontend/autodetect.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,17 @@ def _is_part_local(part):
111111

112112

113113
def _remote_detect(part):
114-
def _emit_script(job):
114+
def _emit_script(job, env):
115115
launcher_cmd = job.launcher.run_command(job)
116116
commands = [
117117
f'./bootstrap.sh',
118118
f'{launcher_cmd} ./bin/reframe --detect-host-topology=topo.json'
119119
]
120-
job.prepare(commands, trap_errors=True)
120+
job.prepare(commands, env, trap_errors=True)
121121

122122
getlogger().info(
123123
f'Detecting topology of remote partition {part.fullname!r}: '
124124
f'this may take some time...'
125-
126125
)
127126
topo_info = {}
128127
try:
@@ -133,7 +132,7 @@ def _emit_script(job):
133132
part.launcher_type(),
134133
name='rfm-detect-job',
135134
sched_access=part.access)
136-
_emit_script(job)
135+
_emit_script(job, [part.local_env])
137136
getlogger().debug('submitting detection script')
138137
_log_contents(job.script_filename)
139138
job.submit()

0 commit comments

Comments
 (0)