Merge branch 'add_whitelisting' into 'master'

ADD: possibility to whitelist some modules

See merge request Pmodules/Pmodules_tools!13
This commit is contained in:
germann_e 2023-02-21 08:57:14 +00:00
commit 1dbd6d73c5
2 changed files with 17 additions and 3 deletions

View File

@ -20,6 +20,10 @@ def deps_status_check(module_cmd_process):
def failure_handler(module, given_status):
if len(module) != 0:
with open("whitelist.txt") as file:
content = file.read()
name = module.split()[0].split("/")[0]
if name not in content:
print('Module: "' + module + '" should be deployed as ' + given_status)
global failed_at_least_once
failed_at_least_once = True

10
whitelist.txt Normal file
View File

@ -0,0 +1,10 @@
OPAL
asciidoc
cp2k
cpmd
dynamo
fluka4
gnuplot
gromacs
ior
ncview