Skip to content

Commit 848de66

Browse files
committed
cleanup in test_fetch_sources_git
1 parent c66ce9c commit 848de66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/framework/easyblock.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,6 +1622,7 @@ def test_fetch_sources(self):
16221622
@requires_github_access()
16231623
def test_fetch_sources_git(self):
16241624
"""Test fetch_sources method from git repo."""
1625+
16251626
testdir = os.path.abspath(os.path.dirname(__file__))
16261627
ec = process_easyconfig(os.path.join(testdir, 'easyconfigs', 'test_ecs', 't', 'toy', 'toy-0.0.eb'))[0]
16271628
eb = get_easyblock_instance(ec)
@@ -1653,6 +1654,9 @@ def test_fetch_sources_git(self):
16531654

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

1657+
# cleanup
1658+
remove_file(eb.src[0]['path'])
1659+
16561660
def test_download_instructions(self):
16571661
"""Test use of download_instructions easyconfig parameter."""
16581662

0 commit comments

Comments
 (0)