-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct file search to avoid resolving glob dir
Correctly use "glob" Tcl command not to resolve glob character (like "*") in directory, only in file name. Fix modulepath file search when libtclenvmodules is disabled and modulepath contains glob characters (like * or ?).
- Loading branch information
1 parent
9a9a3ba
commit 8066602
Showing
4 changed files
with
64 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
############################################################################## | ||
# Modules Revision 3.0 | ||
# Providing a flexible user environment | ||
# | ||
# File: modules.20-locate/%M% | ||
# Revision: %I% | ||
# First Edition: 2024/04/18 | ||
# Last Mod.: %U%, %G% | ||
# | ||
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr | ||
# | ||
# Description: Testuite testsequence | ||
# Command: | ||
# Modulefiles: foo | ||
# Sub-Command: avail, savelist, saveshow | ||
# | ||
# Comment: %C{ | ||
# Check no glob resolution of directory path occur | ||
# }C% | ||
# | ||
############################################################################## | ||
|
||
skip_if_quick_mode | ||
|
||
|
||
# | ||
# locate modulefiles | ||
# | ||
|
||
set mp "$env(TESTSUITEDIR)/mod*lefiles.4" | ||
setenv_path_var MODULEPATH $mp | ||
|
||
testouterr_cmd sh {avail -t foo/1.0} OK {} | ||
|
||
|
||
# | ||
# locate collections | ||
# | ||
|
||
setenv_var HOME [file join $ORIG_HOME hom*] | ||
set collfile [file join $ORIG_HOME hom* default] | ||
|
||
set tserr [err_coll_notfound $collfile] | ||
testouterr_cmd sh "saveshow $collfile" ERR $tserr | ||
|
||
set tserr [msg_no_named_coll] | ||
testouterr_cmd sh {savelist -t default} OK $tserr | ||
|
||
setenv_var HOME $ORIG_HOME | ||
|
||
|
||
# | ||
# Cleanup | ||
# | ||
|
||
reset_test_env |