Skip to content

Commit df505cf

Browse files
committed
update test_make_module_req to add a file into MANPATH of test installation
1 parent 734cd99 commit df505cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/framework/easyblock.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,12 +433,13 @@ def test_make_module_req(self):
433433

434434
# create fake directories and files that should be guessed
435435
os.makedirs(eb.installdir)
436-
write_file(os.path.join(eb.installdir, 'foo.jar'), 'foo.jar')
437-
write_file(os.path.join(eb.installdir, 'bla.jar'), 'bla.jar')
438436
for path in ('bin', ('bin', 'testdir'), 'sbin', 'share', ('share', 'man'), 'lib', 'lib64'):
439437
if isinstance(path, str):
440438
path = (path, )
441439
os.mkdir(os.path.join(eb.installdir, *path))
440+
write_file(os.path.join(eb.installdir, 'foo.jar'), 'foo.jar')
441+
write_file(os.path.join(eb.installdir, 'bla.jar'), 'bla.jar')
442+
write_file(os.path.join(eb.installdir, 'share', 'man', 'pi'), 'Man page')
442443
# this is not a path that should be picked up
443444
os.mkdir(os.path.join(eb.installdir, 'CPATH'))
444445

0 commit comments

Comments
 (0)