Skip to content

Commit

Permalink
adding the copy of the entire /var/lib/irods/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Mar 1, 2024
1 parent 4485164 commit 8f5f9df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/staging/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,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')

# declare the testing complete
fp.write(f'echo "Copying /var/lib/irods/test-report/ results..."; cp ./test-reports/*.xml {run_dir};\n')

# save the log directory for extended forensics
fp.write(f'echo "Moving /var/lib/irods/log dir..."; mv ./log {run_dir};\n')
fp.write(f'echo "Copying /var/lib/irods dir..."; cp -R /var/lib/irods/ {run_dir}/;\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')

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

# make sure the file has the correct permissions
if sys.platform != 'win32':
Expand Down

0 comments on commit 8f5f9df

Please sign in to comment.