Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Output download_pfns to /temp #6506 #6543

Merged
merged 1 commit into from Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions tests/test_bin_rucio.py
Expand Up @@ -685,11 +685,15 @@ def test_download_pfn(self):
print(out, err)

# download files
download_dir = "/temp"
replica_pfn = list(self.replica_client.list_replicas([{'scope': self.user, 'name': name}]))[0]['rses'][self.def_rse][0]
cmd = 'rucio -v download --rse {0} --pfn {1} {2}:{3}'.format(self.def_rse, replica_pfn, self.user, name)
cmd = f'rucio -v download --dir {download_dir} --rse {self.def_rse} --pfn {replica_pfn} {self.user}:{name}'
exitcode, out, err = execute(cmd)
print(out, err)
assert re.search('Total files.*1', out) is not None

if "Access to local destination denied." in err: # Known issue - see #6506
assert False, "test `test_download_pfn` unable to access file {self.user}/{name} in {download_dir}"
else:
assert re.search('Total files.*1', out) is not None

try:
for i in listdir('data13_hip'):
Expand Down