Versions Compared

Key

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

Overview

PTL's create_import_hook(), by default, prints hook's content in the test output. This is a useful information in the test output. But in scenarios where the hook body is very large, (For example cgroups hook with 4500+ lines) the test output becomes unmanageable.  Hence an option will be added to create_import_hook() and import_hook() methods to suppress logging hook body, if needed. Test writers can choose to suppress hook contents if needed.

Forum Discussion

http://community.pbspro.org/t/option-to-suppress-logging-of-hook-body-in-ptls-create-import-hook/1537

Interface updates

In fw/ptl/lib/pbs_testlib.py,

  • Interface: create_import_hook(self, name, attrs=None, body=None, overwrite=True, logbody=True)
    Synopsis: Added a new boolean parameter 'logbody'
    Details:  Default value for logbody is True. 


  • Interface: import_hook(self, name, body, logbody=True)
    Synopsis: Added a new boolean parameter 'logbody'
    Details: Default value for logbody is True. 

...