Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/pavilion/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,12 @@ def _date_dir(base_path):
latest = dir_stat.st_mtime

if src_stat.st_mtime != latest:
os.utime(base_path.as_posix(), (src_stat.st_atime, latest))
try:
os.utime(base_path.as_posix(), (src_stat.st_atime, latest))
except PermissionError as err:
raise TestBuilderError(
(f"Could not stat test source dir '{base_path}'. "
"Invalid permissions."), err)

def __hash__(self):
"""Having a comparison operator breaks hashing."""
Expand Down