Skip to content

Commit

Permalink
Issue #749: set display mode when executing "module update"
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Feb 19, 2025
1 parent 53d526d commit b24c131
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
6 changes: 5 additions & 1 deletion rt/load/err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
step 1
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --version
===========================
Modules based on Lua: Version 8.7.49 2024-08-30 13:55 -06:00
Modules based on Lua: Version 8.7.56 2025-02-04 18:12 -07:00
by Robert McLay mclay@tacc.utexas.edu
===========================
step 2
Expand Down Expand Up @@ -589,3 +589,7 @@ If the avail list is too long consider trying:
"module overview" or "ml ov" to display the number of modules for each name.
Use "module spider" to find all possible modules and extensions.
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys".
===========================
step 79
lua ProjectDIR/src/lmod.in.lua shell --regression_testing update
===========================
2 changes: 1 addition & 1 deletion rt/load/load.tdesc
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ testdescript = {
runLmod load setPrompt # 76
runLmod list # 77
runLmod avail # 78
runLmod update # 79
Expand Down
10 changes: 10 additions & 0 deletions rt/load/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -944,3 +944,13 @@ MODULEPATH=ProjectDIR/rt/load/mf6;
export MODULEPATH;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={longVersion={fn="ProjectDIR/rt/load/mf6/longVersion/branch.60200614194619_w9d09a30560903608993972840ea4qw4d9bb0443-debug.lua",fullName="longVersion/branch.60200614194619_w9d09a30560903608993972840ea4qw4d9bb0443-debug",loadOrder=1,propT={},stackDepth=0,status="active",userName="longVersion",wV="*branch.60200614194619.*_.*w.000000009.*d.000000009.*a.30560903608993972840.*ea.000000004.*qw.000000004.*d.000000009.*bb.000000443.*debug.*zfinal",},setPrompt={fn="ProjectDIR/rt/load/mf6/setPrompt/1.0.lua",fullName="setPrompt/1.0",loadOrder=2,propT={},stackDepth=0,status="active",userName="setPrompt",wV="000000001.*zfinal",},},mpathA={"ProjectDIR/rt/load/mf6",},systemBaseMPATH="ProjectDIR/rt/load/mf6",}';
export _ModuleTable_;
===========================
step 79
lua ProjectDIR/src/lmod.in.lua shell --regression_testing update
===========================
MODULEPATH=ProjectDIR/rt/load/mf6;
export MODULEPATH;
MY_PS1=\[\\u@\\h\ \\W\]\\\$\ ;
export MY_PS1;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={longVersion={fn="ProjectDIR/rt/load/mf6/longVersion/branch.60200614194619_w9d09a30560903608993972840ea4qw4d9bb0443-debug.lua",fullName="longVersion/branch.60200614194619_w9d09a30560903608993972840ea4qw4d9bb0443-debug",loadOrder=1,propT={},stackDepth=0,status="active",userName="longVersion",wV="*branch.60200614194619.*_.*w.000000009.*d.000000009.*a.30560903608993972840.*ea.000000004.*qw.000000004.*d.000000009.*bb.000000443.*debug.*zfinal",},setPrompt={fn="ProjectDIR/rt/load/mf6/setPrompt/1.0.lua",fullName="setPrompt/1.0",loadOrder=2,propT={},stackDepth=0,status="active",userName="setPrompt",wV="000000001.*zfinal",},},mpathA={"ProjectDIR/rt/load/mf6",},systemBaseMPATH="ProjectDIR/rt/load/mf6",}';
export _ModuleTable_;
1 change: 1 addition & 0 deletions src/cmdfuncs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,7 @@ end
--------------------------------------------------------------------------
-- Reload all modules.
function Update()
local mrc = MRC:singleton(); mrc:set_display_mode("all")
local hub = Hub:singleton()
local force_update = true
hub:reloadAll(force_update)
Expand Down

0 comments on commit b24c131

Please sign in to comment.