Skip to content

Commit b24c131

Browse files
author
Robert McLay
committed
Issue #749: set display mode when executing "module update"
1 parent 53d526d commit b24c131

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

rt/load/err.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
step 1
33
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --version
44
===========================
5-
Modules based on Lua: Version 8.7.49 2024-08-30 13:55 -06:00
5+
Modules based on Lua: Version 8.7.56 2025-02-04 18:12 -07:00
66
by Robert McLay [email protected]
77
===========================
88
step 2
@@ -589,3 +589,7 @@ If the avail list is too long consider trying:
589589
"module overview" or "ml ov" to display the number of modules for each name.
590590
Use "module spider" to find all possible modules and extensions.
591591
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys".
592+
===========================
593+
step 79
594+
lua ProjectDIR/src/lmod.in.lua shell --regression_testing update
595+
===========================

rt/load/load.tdesc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ testdescript = {
144144
runLmod load setPrompt # 76
145145
runLmod list # 77
146146
runLmod avail # 78
147-
147+
runLmod update # 79
148148
149149
150150

rt/load/out.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,3 +944,13 @@ MODULEPATH=ProjectDIR/rt/load/mf6;
944944
export MODULEPATH;
945945
_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",}';
946946
export _ModuleTable_;
947+
===========================
948+
step 79
949+
lua ProjectDIR/src/lmod.in.lua shell --regression_testing update
950+
===========================
951+
MODULEPATH=ProjectDIR/rt/load/mf6;
952+
export MODULEPATH;
953+
MY_PS1=\[\\u@\\h\ \\W\]\\\$\ ;
954+
export MY_PS1;
955+
_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",}';
956+
export _ModuleTable_;

src/cmdfuncs.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,7 @@ end
12041204
--------------------------------------------------------------------------
12051205
-- Reload all modules.
12061206
function Update()
1207+
local mrc = MRC:singleton(); mrc:set_display_mode("all")
12071208
local hub = Hub:singleton()
12081209
local force_update = true
12091210
hub:reloadAll(force_update)

0 commit comments

Comments
 (0)