Skip to content

Commit

Permalink
Rename cli job options
Browse files Browse the repository at this point in the history
  • Loading branch information
ekouts committed Nov 13, 2024
1 parent 19fcb7e commit a4db78b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions reframe/frontend/autodetect.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _is_part_local(part):
part.launcher_type.registered_name == 'local')


def _remote_detect(part, job_options):
def _remote_detect(part, cli_job_options):
use_login_shell = runtime.runtime().get_option('general/0/use_login_shell')

def _emit_script_for_source(job, env):
Expand Down Expand Up @@ -172,7 +172,7 @@ def _emit_custom_script(job, env, commands):
job = Job.create(part.scheduler,
part.launcher_type(),
name='rfm-detect-job',
sched_access=part.access + job_options)
sched_access=part.access + cli_job_options)
custom_command = runtime.runtime().get_option(
'general/0/remote_install'
)
Expand Down Expand Up @@ -201,8 +201,8 @@ def _emit_custom_script(job, env, commands):
return topo_info


def detect_topology(job_options=None):
job_options = [] if job_options is None else job_options
def detect_topology(cli_job_options=None):
cli_job_options = [] if cli_job_options is None else cli_job_options
rt = runtime.runtime()
detect_remote_systems = rt.get_option('general/0/remote_detect')
topo_prefix = os.path.join(os.getenv('HOME'), '.reframe/topology')
Expand Down Expand Up @@ -281,8 +281,9 @@ def detect_topology(job_options=None):
_save_info(topo_file, part.processor.info)
elif detect_remote_systems:
with runtime.temp_environment(modules=modules, env_vars=vars):
part._processor = ProcessorInfo(_remote_detect(
part, job_options))
part._processor = ProcessorInfo(
_remote_detect(part, cli_job_options)
)

if part.processor.info:
_save_info(topo_file, part.processor.info)
Expand Down

0 comments on commit a4db78b

Please sign in to comment.