Versions Compared

Key

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

...

    PBSTestSuite's setUpClass() method will save the current PBS configurations by calling save_configuration() method. When pbs_benchpress is executed with option 'use-current-setup', the current PBS configurations are saved by PBSTestSuitesetUpClass(). Before running the tests, there are certain users i.e. test execution user and MGR_USER(PTL specific) added as manager role and OPER_USER as operator role in PBS server. The objective of adding the users is to make sure the behaviour of PTL remains same with or without --use-current-setup. The tests are run on the same current set of PBS configurations without reverting PBS to out of the box. When the option 'use-current-setup' is absent, the current PBS configurations are saved; then PBSTestSuitesetUpClass() will revert the current PBS test setup to out of the box by calling all the daemons' revert_to_defaults() methods, instead of them being called at PBSTestSuite's setUp() and then the tests are run on it.

...