Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • In case of Cray, defining job object inside testcase[example: j = Job(TEST_USER)] will call the new interface "cray_script", which internally will call "create_script" and will set "script" as a default Cray specific script. As per the existing design, if we are using create_script inside testcase then it should not make use of default parameters set during job object initialization in case of Cray, instead test writer should take care of Cray specific parameters(example: aprun) inside script. Hence if "script" already set(set while defining job object), then cleanup is required and it will execute the below sequence.
    • If platform is Cray or a Cray ALPS simulator and "script" is set then perform below steps:
      • Unset "Resource_List.select" attribute.
      • Make "script" to None.
      • If "Resource_List.vntype" is set, then unset it.

...

  • Call Job.create_script() by passing script body containing aprun with "Aprun_param" value.

Interface: Server.submit()
Visibility: Public
Change Control: Stable
Synopsis: Modifications to consider 'submit_dir' value as users home directory path for Cray
Details:

  • If platform is Cray or a Cray ALPS simulator and obj.username is defined then perform below step :
    • Assign requested user's(obj.username) home directory path to 'submit_dir'

Interface: DshUtils.run_cmd()
Visibility: Public
Change Control: Stable
Synopsis: Modifications to 'sudocmd' to include new paramter PWD if Cray
Details:

  • If platform is Cray or a Cray ALPS simulator and runas is defined then perform below step:
    • Include 'PWD=<path to user's(runas) home directory>' inside 'sudocmd' list