Skip to content

Commit

Permalink
Merge pull request #1284 from LLNL/bugfix/chapman39/chmod-shared-cali
Browse files Browse the repository at this point in the history
`chmod` shared caliper files
  • Loading branch information
chapman39 authored Dec 9, 2024
2 parents d4aacdc + 3a1baf8 commit 4c5953a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/llnl/run_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ def main():
for cali_file in cali_files:
if os.path.exists(cali_file):
shutil.copy2(cali_file, spot_dir)
# Update group and permissions of new caliper file
cali_file = os.path.join(spot_dir, os.path.basename(cali_file))
group_info = grp.getgrnam("smithdev")
os.chown(cali_file, -1, group_info.gr_gid)
os.chmod(cali_file,
stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IWGRP)

# Print SPOT url
if on_rz():
Expand Down

0 comments on commit 4c5953a

Please sign in to comment.