]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
orchestra/remote: add a method to write files in /tmp no-sudo-for-tmp-files
authorRishabh Dave <ridave@redhat.com>
Fri, 26 Mar 2021 09:26:11 +0000 (14:56 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 26 Mar 2021 10:48:35 +0000 (16:18 +0530)
commit18caf08d0e0500212859f2e5228b66c5e7745c85
tree405deab1a6ea648eeb5e735bd8809086bc08cbb2
parent3082387bba74fcd24c9700593d10418152d53c97
orchestra/remote: add a method to write files in /tmp

Test code can call sudo_write_file() to write files in /tmp which won't
work since in newer kernel version files in /tmp can only be written by
the owner. Add a method that creates a file in /tmp and then writes it
without using sudo.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
teuthology/orchestra/remote.py