@@ -127,7 +127,7 @@ def get_expansions():
127127 # Set up environments
128128 # To run this test, replace conda environment with your e3sm_diags dev environment
129129 # Or the Unified environment
130- # (The same for `global_time_series_environment_commands`)
130+ # (The same for `global_time_series_environment_commands` and `pcmdi_diags_environment_commands` )
131131 # Never set this to "" because it will print the line
132132 # `environment_commands = ""` for the [e3sm_diags] task, overriding zppy's
133133 # default of using Unified. That is, there will be no environment set.
@@ -203,7 +203,7 @@ def generate_cfgs(unified_testing=False, dry_run=False):
203203 expansions = get_expansions ()
204204 if unified_testing :
205205 expansions ["environment_commands" ] = expansions ["environment_commands_test" ]
206- # Use Unified for e3sm_diags and global_time_series unless we specify otherwise
206+ # Use Unified for e3sm_diags, global_time_series, pcmdi_diags unless we specify otherwise
207207 if expansions ["diags_environment_commands" ] == "" :
208208 expansions ["diags_environment_commands" ] = expansions [
209209 "environment_commands_test"
@@ -212,6 +212,10 @@ def generate_cfgs(unified_testing=False, dry_run=False):
212212 expansions ["global_time_series_environment_commands" ] = expansions [
213213 "environment_commands_test"
214214 ]
215+ if expansions ["pcmdi_diags_environment_commands" ] == "" :
216+ expansions ["pcmdi_diags_environment_commands" ] = expansions [
217+ "environment_commands_test"
218+ ]
215219 else :
216220 # The cfg doesn't need this line,
217221 # but it would be difficult to only write environment_commands in the unified_testing case.
0 commit comments