You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
-p/--prgenv has no effect when --mode is used #3734
As a workaround I found that reframe --dry-run --mode=mymode -n mutest -S valid_prog_environs=intel-2025a_mpi
behaves as expected. Still, the -p option is described as the first choice option in the documentation.
where ReFrame combines the mode options with those already passed. Inspecting the update_config it seems that ReFrame combines the default value of --prgenv, which is .* with the option passed in the command line as if the user has passed -p '.*' -p clang:
Activity
Lewih commentedon Sep 14, 2026
As a workaround I found that
reframe --dry-run --mode=mymode -n mutest -S valid_prog_environs=intel-2025a_mpibehaves as expected. Still, the
-poption is described as the first choice option in the documentation.vkarak commentedon Sep 14, 2026
What options does the mode define?
vkarak commentedon Sep 14, 2026
I cannot reproduce it. Here are the modes that I define:
Selecting tests without the mode:
Using the mode:
As expected.
Note that it works also if
optionsare defined as a single string:Lewih commentedon Sep 17, 2026
There is a misalignment between our setups.
I do not put the
-poption in the mode section of the config file, instead I only use it in the CLI to ideally select a subset of tests.I call the run script
reframe --dry-run --mode=all -n MPIHello -p foss-2025a_mpiand have the following outputThe desired output should show only the
foss-2025a_mpivariants of the tests.Can you reproduce this?
The modes section of my config file is as follows
vkarak commentedon Sep 30, 2026
Indeed, I updated my mode and I reproduced it:
vkarak commentedon Sep 30, 2026
Yes, this is a bug. It comes from here:
reframe/reframe/frontend/cli.py
Lines 1100 to 1101 in a72c713
where ReFrame combines the mode options with those already passed. Inspecting the
update_configit seems that ReFrame combines the default value of--prgenv, which is.*with the option passed in the command line as if the user has passed-p '.*' -p clang: