Enabling microsecond logging by default for PTL
Forum Discussion page - http://community.pbspro.org/t/enabling-microsecond-logging-by-default-for-ptl/1679
Overview:
Currently in PTL tests we do not have microsecond logging turned while during running tests. This causes difficulty to differentiate the message log times between PTL and PBS log files
We are proposing to enable microsecond logging in PTL by default to make it easier to compare PTL and PBS log messages.
Changes to the following existing functions are proposed in test/fw/ptl/utils/pbs_testsuite.py -
Interface 1: revert_pbsconf()
Details: Add "PBS_LOG_HIGHRES_TIMESTAMP" in val_to_set{}. val_to_set{} is a dictionary of pbs.conf variables.
Interface 2: _get_dflt_pbsconfval()
Details: Add support for config variable "PBS_LOG_HIGHRES_TIMESTAMP".
Interface 3: _revert_pbsconf_comm():
Details: Add if condition to handle "PBS_LOG_HIGHRES_TIMESTAMP".
If "PBS_LOG_HIGHRES_TIMESTAMP" value is not present in conf data or is set to 0, change it to 1
Interface 4: _revert_pbsconf_mom():
Details: Add if condition to handle "PBS_LOG_HIGHRES_TIMESTAMP".
If "PBS_LOG_HIGHRES_TIMESTAMP" value is not present in conf data or is set to 0, change it to 1
Interface 5: _revert_pbsconf_server():
Details: Add if condition to handle "PBS_LOG_HIGHRES_TIMESTAMP".
If "PBS_LOG_HIGHRES_TIMESTAMP" value is not present in conf data or is set to 0, change it to 1