ADD: possibility to whitelist some modules
This commit is contained in:
parent
11dcbb941b
commit
224ed99ad0
@ -20,9 +20,13 @@ def deps_status_check(module_cmd_process):
|
|||||||
|
|
||||||
def failure_handler(module, given_status):
|
def failure_handler(module, given_status):
|
||||||
if len(module) != 0:
|
if len(module) != 0:
|
||||||
print('Module: "' + module + '" should be deployed as ' + given_status)
|
with open("whitelist.txt") as file:
|
||||||
global failed_at_least_once
|
content = file.read()
|
||||||
failed_at_least_once = True
|
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
|
||||||
|
|
||||||
|
|
||||||
def subprocess_cmd(cmd):
|
def subprocess_cmd(cmd):
|
||||||
|
10
whitelist.txt
Normal file
10
whitelist.txt
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
OPAL
|
||||||
|
asciidoc
|
||||||
|
cp2k
|
||||||
|
cpmd
|
||||||
|
dynamo
|
||||||
|
fluka4
|
||||||
|
gnuplot
|
||||||
|
gromacs
|
||||||
|
ior
|
||||||
|
ncview
|
Loading…
x
Reference in New Issue
Block a user