diff --git a/src/staging/staging.py b/src/staging/staging.py index 2aad4f2..58a521d 100644 --- a/src/staging/staging.py +++ b/src/staging/staging.py @@ -18,6 +18,7 @@ from src.common.pg_impl import PGImplementation from src.common.staging_enums import StagingType, StagingTestExecutor, WorkflowTypeName, ReturnCodes + class Staging: """ Class that contains functionality for staging @@ -204,6 +205,10 @@ def create_test_files(self, run_dir: str, run_data: json, workflow_type: Workflo # declare the testing complete fp.write(f'echo "Copying test results..."; cp ./test-reports/*.xml {run_dir};\n') + # save these directories for more forensics + fp.write(f'echo "Copying test results..."; cp -r /var/log/irods/ /data/{run_dir}/var/log/irods;\n') + fp.write(f'echo "Copying test results..."; cp -r /var/lib/irods/log/ /data/{run_dir}/var/lib/irods/log;\n') + # make sure the file has the correct permissions if sys.platform != 'win32': os.chmod(out_file_name, 0o777)