Skip to content

Commit

Permalink
Remove the local file in test_download_dataset before download ruci…
Browse files Browse the repository at this point in the history
…o#5887

The local created file in `test_download_dataset`, which gets uploaded, is not
removed before the download. This results in a failing test, since it is cached
and thus does not need to be downloaded.
  • Loading branch information
Joel Dierkes committed Sep 21, 2022
1 parent 38ec2ec commit 2437b12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rucio/tests/test_bin_rucio.py
Expand Up @@ -1039,6 +1039,9 @@ def test_download_dataset(self):
print(self.marker + cmd)
exitcode, out, err = execute(cmd)
print(out, err)

os.remove(tmp_file1)

# download dataset
cmd = 'rucio -v download --dir /tmp {0}'.format(tmp_dataset) # triming '/tmp/' from filename
print(self.marker + cmd)
Expand Down

0 comments on commit 2437b12

Please sign in to comment.