Skip to content

Commit

Permalink
cleanup in test_fetch_sources_git
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Dec 18, 2024
1 parent c66ce9c commit 848de66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/framework/easyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1622,6 +1622,7 @@ def test_fetch_sources(self):
@requires_github_access()
def test_fetch_sources_git(self):
"""Test fetch_sources method from git repo."""

testdir = os.path.abspath(os.path.dirname(__file__))
ec = process_easyconfig(os.path.join(testdir, 'easyconfigs', 'test_ecs', 't', 'toy', 'toy-0.0.eb'))[0]
eb = get_easyblock_instance(ec)
Expand Down Expand Up @@ -1653,6 +1654,9 @@ def test_fetch_sources_git(self):

self.assertEqual(eb.src[0]['checksum'], reference_checksum)

# cleanup
remove_file(eb.src[0]['path'])

def test_download_instructions(self):
"""Test use of download_instructions easyconfig parameter."""

Expand Down

0 comments on commit 848de66

Please sign in to comment.