Skip to content

Commit

Permalink
update test_make_module_req to add a file into MANPATH of test instal…
Browse files Browse the repository at this point in the history
…lation
  • Loading branch information
lexming committed Sep 23, 2024
1 parent 734cd99 commit df505cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/framework/easyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,12 +433,13 @@ def test_make_module_req(self):

# create fake directories and files that should be guessed
os.makedirs(eb.installdir)
write_file(os.path.join(eb.installdir, 'foo.jar'), 'foo.jar')
write_file(os.path.join(eb.installdir, 'bla.jar'), 'bla.jar')
for path in ('bin', ('bin', 'testdir'), 'sbin', 'share', ('share', 'man'), 'lib', 'lib64'):
if isinstance(path, str):
path = (path, )
os.mkdir(os.path.join(eb.installdir, *path))
write_file(os.path.join(eb.installdir, 'foo.jar'), 'foo.jar')
write_file(os.path.join(eb.installdir, 'bla.jar'), 'bla.jar')
write_file(os.path.join(eb.installdir, 'share', 'man', 'pi'), 'Man page')
# this is not a path that should be picked up
os.mkdir(os.path.join(eb.installdir, 'CPATH'))

Expand Down

0 comments on commit df505cf

Please sign in to comment.