Skip to content

Commit

Permalink
adding the executor dir for the results
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Mar 6, 2024
1 parent 80cbd5f commit 258784d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/staging/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,14 @@ def create_test_files(self, run_dir: str, run_data: json, workflow_type: Workflo
# create the test entry with some extra info
fp.write(f'echo "Running {test}"; {base_cmd_line}{topology_test_type} --run_s {test};\n')

# create the results directory
fp.write(f'echo "Creating the results dir {run_dir}/{executor}..."; mkdir {run_dir}/{executor}')

# save the log directory for extended forensics
fp.write(f'echo "Copying /var/lib/irods dir..."; cp -R /var/lib/irods/ {run_dir}/;\n')
fp.write(f'echo "Copying /var/lib/irods dir..."; cp -R /var/lib/irods/ {run_dir}/{executor}/;\n')

# this directory may or may not exist
fp.write(f'echo "Copying /var/log/irods/ dir..."; cp -R /var/log/irods/ {run_dir}/;\n')
fp.write(f'echo "Copying /var/log/irods/ dir..."; cp -R /var/log/irods/ {run_dir}/{executor}/;\n')

# this directory may or may not exist
fp.write(f'echo "Making run dir global R/W"; chmod -R 777 {run_dir};\n')
Expand Down

0 comments on commit 258784d

Please sign in to comment.