rcs-si / module_check

Check if environment variables within a module file are defined correctly
2 stars 0 forks source link

Fix module_env.is_env_variable_valid_file_or_directory() #18

Closed bu-bgregor closed 5 months ago

bu-bgregor commented 5 months ago

Function module_env.is_env_variable_valid_file_or_directory(shell_variables) throws an exception if a module variable does not point to a valid file or directory.

It should return the variable name & the thing that was checked and let module_check.py raise the exception.

New return value - empty list if there is nothing wrong.

Bad variables: [('SCC_MODNAME_INCLUDE','/share/pkg.8/modname/1.0/include'), ... etc... ] and in module_check.check_files_dirs() print out a message with these "These are not files or directories!" and raise an exception.

bu-bgregor commented 5 months ago

implemented, checked in