Fix case spelling for Lmod and Tcl (#36215)

This commit is contained in:
Xavier Delaruelle
2023-03-19 02:42:50 +01:00
committed by GitHub
parent 4ffdde94ef
commit df97827a7b
26 changed files with 46 additions and 46 deletions

View File

@@ -4,7 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
"""This package contains code for creating environment modules, which can
include TCL non-hierarchical modules, LUA hierarchical modules, and others.
include Tcl non-hierarchical modules, Lua hierarchical modules, and others.
"""
from __future__ import absolute_import

View File

@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
"""This module implements the classes necessary to generate TCL
"""This module implements the classes necessary to generate Tcl
non-hierarchical modules.
"""
import posixpath
@@ -19,7 +19,7 @@
from .common import BaseConfiguration, BaseContext, BaseFileLayout, BaseModuleFileWriter
#: TCL specific part of the configuration
#: Tcl specific part of the configuration
def configuration(module_set_name):
config_path = "modules:%s:tcl" % module_set_name
config = spack.config.get(config_path, {})

View File

@@ -479,7 +479,7 @@ def test_from_environment_diff(before, after, search_list):
assert item in mod
@pytest.mark.skipif(sys.platform == "win32", reason="LMod not supported on Windows")
@pytest.mark.skipif(sys.platform == "win32", reason="Lmod not supported on Windows")
@pytest.mark.regression("15775")
def test_exclude_lmod_variables():
# Construct the list of environment modifications

View File

@@ -55,7 +55,7 @@ def test_modules_written_with_proper_permissions(
spec = spack.spec.Spec("mpileaks").concretized()
# The code tested is common to all module types, but has to be tested from
# one. TCL picked at random
# one. Tcl picked at random
generator = spack.modules.tcl.TclModulefileWriter(spec, "default")
generator.write()

View File

@@ -88,7 +88,7 @@ def test_compilers_provided_different_name(self, factory, module_configuration):
assert provides["compiler"] == spack.spec.CompilerSpec("oneapi@3.0")
def test_simple_case(self, modulefile_content, module_configuration):
"""Tests the generation of a simple TCL module file."""
"""Tests the generation of a simple Tcl module file."""
module_configuration("autoload_direct")
content = modulefile_content(mpich_spec_string)

View File

@@ -24,7 +24,7 @@
@pytest.mark.usefixtures("config", "mock_packages", "mock_module_filename")
class TestTcl(object):
def test_simple_case(self, modulefile_content, module_configuration):
"""Tests the generation of a simple TCL module file."""
"""Tests the generation of a simple Tcl module file."""
module_configuration("autoload_direct")
content = modulefile_content(mpich_spec_string)
@@ -318,7 +318,7 @@ def test_extend_context(self, modulefile_content, module_configuration):
assert 'puts stderr "sentence from package"' in content
short_description = 'module-whatis "This package updates the context for TCL modulefiles."'
short_description = 'module-whatis "This package updates the context for Tcl modulefiles."'
assert short_description in content
@pytest.mark.regression("4400")

View File

@@ -98,7 +98,7 @@ def get_path_args_from_module_line(line):
words_and_symbols = line.split(lua_quote)
path_arg = words_and_symbols[-2]
else:
# The path arg is the 3rd "word" of the line in a TCL module
# The path arg is the 3rd "word" of the line in a Tcl module
# OPERATION VAR_NAME PATH_ARG
words = line.split()
if len(words) > 2:
@@ -111,7 +111,7 @@ def get_path_args_from_module_line(line):
def path_from_modules(modules):
"""Inspect a list of TCL modules for entries that indicate the absolute
"""Inspect a list of Tcl modules for entries that indicate the absolute
path at which the library supported by said module can be found.
Args: