Versions Compared

Key

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

...

In PTL
- the existing interface to create temporary file return file name and file descriptor (FD). If test case create a file as different users than the current user the file FD is invalid as current user can't make use the returned FD.
- For file copy operation PTL by default does copy file with keeping original permission and then change owner and permissions of file

Enhancements:
- New interface to create a temporary file
- update Adding a new parameter 'preserve_permission' to run_copy() to override the default file copy operation to not keep original permission by default this will avoid additional chmod.


New Interfaces

Interface 1: create_temp_file
Visibility: Public
Change Control: Stable

...

Details:

   Added a new parameter keeppreserve_permission. Default preserve_permission= FalseTrue.

  The existing interface executes cp command with -p flag which preserves owner,group permissions of source file.

   If the param 'keeppreserve_permission= False' then run_copy() will copy file without keeping original permission (i.e cp without -p flag).

   If the param 'keeppreserve_permission= True' then run_copy() will continue existing behavior as it is (i.e cp with -p flag)

...