Skip to content

Commit

Permalink
unset sticky bit when clearing working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pretendWhale committed Jan 22, 2024
1 parent 37b5fcd commit 447b246
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/autotest_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ def _clear_working_directory(tests_path: str, test_username: str) -> None:
Run commands that clear the tests_path working directory
"""
if test_username != getpass.getuser():
chmod_cmd = f"sudo -u {test_username} -- bash -c 'chmod -Rf ugo+rwX {tests_path}'"
chmod_cmd = f"sudo -u {test_username} -- bash -c 'chmod -Rf -t ugo+rwX {tests_path}'"
else:
chmod_cmd = f"chmod -Rf ugo+rwX {tests_path}"
chmod_cmd = f"chmod -Rf -t ugo+rwX {tests_path}"

subprocess.run(chmod_cmd, shell=True)

Expand Down

0 comments on commit 447b246

Please sign in to comment.