Skip to content

Commit

Permalink
Issue #674: Change Lmod Warning to not set error status
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Nov 14, 2023
1 parent 807fa78 commit 86f9d66
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 23 deletions.
2 changes: 1 addition & 1 deletion rt/avail/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.19 2023-01-17 10:45 -06:00
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
by Robert McLay [email protected]
===========================
step 2
Expand Down
1 change: 0 additions & 1 deletion rt/avail/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ MODULEPATH=ProjectDIR/rt/avail/mf/Core9:ProjectDIR/rt/avail/mf/Core8:ProjectDIR/
export MODULEPATH;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={A={fn="ProjectDIR/rt/avail/mf/Core7/A/1.2",fullName="A/1.2",loadOrder=1,propT={},stackDepth=0,status="active",userName="A",wV="000000001.000000002.*zfinal",},B={fn="ProjectDIR/rt/avail/mf/Core7/B/1.0.lua",fullName="B/1.0",loadOrder=2,propT={},stackDepth=0,status="active",userName="B",wV="000000001.*zfinal",},},mpathA={"ProjectDIR/rt/avail/mf/Core9","ProjectDIR/rt/avail/mf/Core8","ProjectDIR/rt/avail/mf/Core7",},}';
export _ModuleTable_;
false
===========================
step 40
lua ProjectDIR/src/lmod.in.lua shell --regression_testing purge
Expand Down
2 changes: 1 addition & 1 deletion rt/broken_modulerc/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.25 2023-05-18 17:01 -05:00
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
by Robert McLay [email protected]
===========================
step 2
Expand Down
2 changes: 0 additions & 2 deletions rt/broken_modulerc/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ _LMFILES_=ProjectDIR/rt/broken_modulerc/mf/Core/git/2.0.3.lua:ProjectDIR/rt/brok
export _LMFILES_;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={git={fn="ProjectDIR/rt/broken_modulerc/mf/Core/git/2.0.3.lua",fullName="git/2.0.3",loadOrder=1,origUserName="git",propT={},stackDepth=0,status="active",userName="git/2.0.3",wV="000000002.000000000.000000003.*zfinal",},hdf5={fn="ProjectDIR/rt/broken_modulerc/mf/Core/hdf5/1.8.15.lua",fullName="hdf5/1.8.15",loadOrder=2,propT={},stackDepth=0,status="active",userName="hdf5/1.8.15",wV="000000001.000000008.000000015.*zfinal",},},mpathA={"ProjectDIR/rt/broken_modulerc/mf/Core",},}';
export _ModuleTable_;
false
===========================
step 4
lua ProjectDIR/src/lmod.in.lua shell --regression_testing list
Expand All @@ -35,4 +34,3 @@ MODULEPATH=ProjectDIR/rt/broken_modulerc/mf/Core;
export MODULEPATH;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={git={fn="ProjectDIR/rt/broken_modulerc/mf/Core/git/2.0.3.lua",fullName="git/2.0.3",loadOrder=1,origUserName="git",propT={},stackDepth=0,status="active",userName="git/2.0.3",wV="000000002.000000000.000000003.*zfinal",},hdf5={fn="ProjectDIR/rt/broken_modulerc/mf/Core/hdf5/1.8.15.lua",fullName="hdf5/1.8.15",loadOrder=2,propT={},stackDepth=0,status="active",userName="hdf5/1.8.15",wV="000000001.000000008.000000015.*zfinal",},},mpathA={"ProjectDIR/rt/broken_modulerc/mf/Core",},}';
export _ModuleTable_;
false
4 changes: 2 additions & 2 deletions rt/configDir/err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
step 1
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --version
===========================
Modules based on Lua: Version 8.7.22 2023-03-26 09:58 -05:00
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
by Robert McLay [email protected]
===========================
step 2
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --config
===========================
Modules based on Lua: Version 8.7.22 2023-03-26 09:58 -05:00
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
by Robert McLay [email protected]
Description Value
Allow root to use Lmod (LMOD_ALLOW_ROOT_USE) yes
Expand Down
1 change: 0 additions & 1 deletion rt/configDir/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ _LMFILES_=ProjectDIR/rt/configDir/mf/tryThis/1.0.lua:ProjectDIR/rt/configDir/mf/
export _LMFILES_;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={tryThis={fn="ProjectDIR/rt/configDir/mf/tryThis/1.0.lua",fullName="tryThis/1.0",loadOrder=1,propT={},stackDepth=0,status="active",userName="tryThis",wV="000000001.*zfinal",},w={fn="ProjectDIR/rt/configDir/mf/w/1.0.lua",fullName="w/1.0",loadOrder=2,propT={},stackDepth=0,status="active",userName="w",wV="000000001.*zfinal",},},mpathA={"ProjectDIR/rt/configDir/mf",},systemBaseMPATH="ProjectDIR/rt/configDir/mf",}';
export _ModuleTable_;
false
2 changes: 1 addition & 1 deletion rt/depends_on/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.18 2023-01-14 07:33 -06:00
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
by Robert McLay [email protected]
===========================
step 2
Expand Down
3 changes: 0 additions & 3 deletions rt/depends_on/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ _LMFILES_=ProjectDIR/rt/depends_on/mf/Core/B.lua:ProjectDIR/rt/depends_on/mf/Cor
export _LMFILES_;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={B={fn="ProjectDIR/rt/depends_on/mf/Core/B.lua",fullName="B",loadOrder=1,propT={},ref_count=1,stackDepth=1,status="active",userName="B",wV="M.*zfinal",},X={fn="ProjectDIR/rt/depends_on/mf/Core/X.lua",fullName="X",loadOrder=2,propT={},stackDepth=0,status="active",userName="X",wV="M.*zfinal",},},mpathA={"ProjectDIR/rt/depends_on/mf/Core",},systemBaseMPATH="ProjectDIR/rt/depends_on/mf/Core",}';
export _ModuleTable_;
false
===========================
step 16
lua ProjectDIR/src/lmod.in.lua shell --regression_testing restore
Expand All @@ -171,7 +170,6 @@ _LMFILES_=ProjectDIR/rt/depends_on/mf/Core/B.lua:ProjectDIR/rt/depends_on/mf/Cor
export _LMFILES_;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={B={fn="ProjectDIR/rt/depends_on/mf/Core/B.lua",fullName="B",loadOrder=1,propT={},ref_count=2,stackDepth=1,status="active",userName="B",wV="M.*zfinal",},X={fn="ProjectDIR/rt/depends_on/mf/Core/X.lua",fullName="X",loadOrder=2,propT={},stackDepth=0,status="active",userName="X",wV="M.*zfinal",},Y={fn="ProjectDIR/rt/depends_on/mf/Core/Y.lua",fullName="Y",loadOrder=3,propT={},stackDepth=0,status="active",userName="Y",wV="M.*zfinal",},},mpathA={"ProjectDIR/rt/depends_on/mf/Core",},systemBaseMPATH="ProjectDIR/rt/depends_on/mf/Core",}';
export _ModuleTable_;
false
===========================
step 18
lua ProjectDIR/src/lmod.in.lua shell --regression_testing purge
Expand Down Expand Up @@ -419,7 +417,6 @@ _LMFILES_=ProjectDIR/rt/depends_on/mf/Core2/SomeSoftware/1.2.lua:ProjectDIR/rt/d
export _LMFILES_;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={Dependency={fn="ProjectDIR/rt/depends_on/mf/Core2/Dependency/5.6.lua",fullName="Dependency/5.6",loadOrder=2,propT={},ref_count=1,stackDepth=1,status="active",userName="Dependency/5.6",wV="000000005.000000006.*zfinal",},OtherSoftware={fn="ProjectDIR/rt/depends_on/mf/Core2/OtherSoftware/3.4.lua",fullName="OtherSoftware/3.4",loadOrder=3,propT={},stackDepth=0,status="active",userName="OtherSoftware",wV="000000003.000000004.*zfinal",},SomeSoftware={fn="ProjectDIR/rt/depends_on/mf/Core2/SomeSoftware/1.2.lua",fullName="SomeSoftware/1.2",loadOrder=1,propT={},stackDepth=0,status="active",userName="SomeSoftware",wV="000000001.000000002.*zfinal",},},mpathA={"ProjectDIR/rt/depends_on/mf/Core2",},systemBaseMPATH="ProjectDIR/rt/depends_on/mf/Core2",}';
export _ModuleTable_;
false
===========================
step 42
lua ProjectDIR/src/lmod.in.lua shell --regression_testing list
Expand Down
2 changes: 1 addition & 1 deletion rt/nil/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.6.9 2022-02-02 11:25 -04:00
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
by Robert McLay [email protected]
===========================
step 2
Expand Down
1 change: 0 additions & 1 deletion rt/nil/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ MODULEPATH=ProjectDIR/rt/nil/mf/Core;
export MODULEPATH;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={},mpathA={"ProjectDIR/rt/nil/mf/Core",},systemBaseMPATH="ProjectDIR/rt/nil/mf/Core",}';
export _ModuleTable_;
false
2 changes: 1 addition & 1 deletion rt/rmap/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.2 2022-05-04 13:42 -05:00
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
by Robert McLay [email protected]
===========================
step 2
Expand Down
1 change: 0 additions & 1 deletion rt/rmap/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ MODULEPATH=ProjectDIR/rt/rmap/mf/2Core;
export MODULEPATH;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={},mpathA={"ProjectDIR/rt/rmap/mf/2Core",},systemBaseMPATH="ProjectDIR/rt/rmap/mf/2Core",}';
export _ModuleTable_;
false
===========================
step 7
buildSpiderT ProjectDIR/rt/rmap/mf/2Core
Expand Down
2 changes: 1 addition & 1 deletion rt/show/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.12 2022-08-18 15:45 -05:00
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
by Robert McLay [email protected]
===========================
step 2
Expand Down
1 change: 0 additions & 1 deletion rt/show/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ MODULEPATH=ProjectDIR/rt/show/mf/Core2:ProjectDIR/rt/show/mf/Core;
export MODULEPATH;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={boost={fn="ProjectDIR/rt/show/mf/Core/boost/1.47.1.lua",fullName="boost/1.47.1",loadOrder=1,propT={},stackDepth=0,status="active",userName="boost/1.47.1",wV="000000001.000000047.000000001.*zfinal",},},mpathA={"ProjectDIR/rt/show/mf/Core2","ProjectDIR/rt/show/mf/Core",},systemBaseMPATH="ProjectDIR/rt/show/mf/Core",}';
export _ModuleTable_;
false
===========================
step 14
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --location show a
Expand Down
2 changes: 1 addition & 1 deletion rt/unload/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.6.15 2022-03-17 16:13 -05:00
Modules based on Lua: Version 8.7.32 2023-08-28 12:42 -05:00
by Robert McLay [email protected]
===========================
step 2
Expand Down
1 change: 0 additions & 1 deletion rt/unload/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,3 @@ unset TOTO;
unset _LMFILES_;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={mpich2={fn="ProjectDIR/rt/unload/mf/Compiler/intel/13.0/mpich2/1.5.2.lua",fullName="mpich2/1.5.2",loadOrder=-1,propT={},stackDepth=0,status="inactive",userName="mpich2",wV="000000001.000000005.000000002.*zfinal",},petsc={fn="ProjectDIR/rt/unload/mf/MPI/intel/13.0/mpich2/1.5/petsc/3.2.lua",fullName="petsc/3.2",loadOrder=-2,propT={},stackDepth=0,status="inactive",userName="petsc",wV="000000003.000000002.*zfinal",},},mpathA={"ProjectDIR/rt/unload/mf/Core",},systemBaseMPATH="ProjectDIR/rt/unload/mf/Core",}';
export _ModuleTable_;
false
6 changes: 3 additions & 3 deletions src/lmod.in.lua
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,9 @@ function main()
io.stderr:write(timer:report(),"\n")
end

if (getWarningFlag() and not quiet() ) then
LmodErrorExit()
end
--if (getWarningFlag() and not quiet() ) then
-- LmodErrorExit()
--end
end

main()
Expand Down

0 comments on commit 86f9d66

Please sign in to comment.