Skip to content

Commit d12904e

Browse files
committed
fix path_entry_reorder test
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
1 parent 580b375 commit d12904e

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

testsuite/modulefiles.4/append/2.0

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
#%Module
1+
#%Module1.0
2+
3+
##############################################################################
4+
# Modules Revision 3.0
5+
# Providing a flexible user environment
6+
#
7+
# File: append/%M%
8+
# Revision: %I%
9+
# First Edition: 2026/01/08
10+
# Last Mod.: %U%, %G%
11+
#
12+
# Authors: Achim Gsell, achim.gsell@psi.ch
13+
#
14+
# Description: Test appending paths with path_entry_enabled
15+
# Command:
16+
# Sub-Command: append-path
17+
#
18+
# Invocation: load @M@/@V@
19+
# Comment: %C{
20+
# }C%
21+
#
22+
##############################################################################
23+
24+
append-path FOO /test/dir1 /test/dir2 /test/dir3

testsuite/modulefiles.4/append/3.0

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#%Module

testsuite/modulefiles/append/9.0

Lines changed: 0 additions & 24 deletions
This file was deleted.

testsuite/modules.50-cmds/040-append.exp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,10 @@ testouterr_cmd "sh" "unload $module" $ans {}
489489
# test that path entry is not removed if added twice and path_entry_reorder
490490
# is true
491491
#
492-
set module "append/9.0"
493-
set modulefile "$modpath/$module"
492+
set module "append/2.0"
493+
set modulefile "$modpath.4/$module"
494494

495+
setenv_var MODULEPATH $modpath.4
495496
setenv_var MODULES_PATH_ENTRY_REORDER 1
496497
setenv_var FOO /test/dir2
497498
unsetenv_var __MODULES_SHARE_FOO
@@ -511,7 +512,6 @@ testouterr_cmd "sh" "load $module" $ans ""
511512

512513
unsetenv_loaded_module
513514
unsetenv_path_var FOO
514-
setenv_var MODULEPATH $modpath.4
515515

516516
set ans [list]
517517
lappend ans [list set FOO /tmp*]

0 commit comments

Comments
 (0)