Skip to content

Commit

Permalink
restoring nfs directory path code. but commenting out the functionali…
Browse files Browse the repository at this point in the history
…ty until NFS dir perms are resolved.
  • Loading branch information
PhillipsOwen committed Apr 1, 2024
1 parent 522c3b5 commit 5a3f484
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/staging/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,18 @@ def create_test_files(self, run_dir: str, run_data: json, workflow_type: Workflo
# this directory may or may not exist
fp.write(f'echo "Copying /var/log/irods dir into {data_path}..."; cp -R /var/log/irods {data_path};\n')

#############
# TODO: this section is commented out until the NFS directory permissions are resolved
#############
# if specified, use the package directory
if run_data['request_data']['package-dir']:
self.default_pkg_dir = run_data['request_data']['package-dir']
# if run_data['request_data']['package-dir']:
# self.default_pkg_dir = run_data['request_data']['package-dir']

# get the directory path
archive_dir: str = str(os.path.join(self.default_pkg_dir, run_data['request_group'], str(run_data['id'])))
# archive_dir: str = str(os.path.join(self.default_pkg_dir, run_data['request_group'], str(run_data['id'])))

# create the command to create the directory
fp.write(f'echo "Creating the archive directory {archive_dir}..."; mkdir -p {archive_dir};\n')
# fp.write(f'echo "Creating the archive directory {archive_dir}..."; mkdir -p {archive_dir};\n')

# get the full path to the test results archive file
# archive_file: str = str(os.path.join(archive_dir, f'{executor}.tar.gz'))
Expand Down

0 comments on commit 5a3f484

Please sign in to comment.