File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -111,18 +111,17 @@ def _is_part_local(part):
111111
112112
113113def _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 ()
You can’t perform that action at this time.
0 commit comments