Add file containing functions used by the test script
This commit is contained in:
parent
d70481e425
commit
2ba3c68921
18
script/include/test_functions.inc.sh
Normal file
18
script/include/test_functions.inc.sh
Normal file
@ -0,0 +1,18 @@
|
||||
# test_functions.inc.sh: Functions used by the run_test script
|
||||
|
||||
run_python_lint() {
|
||||
local python_files="${1}"
|
||||
run_command "pylint ${python_files}"
|
||||
return $?
|
||||
}
|
||||
|
||||
run_python_static_analysis() {
|
||||
local python_files="${1}"
|
||||
run_command "bandit -c ./.bandit_config -r ${python_files}"
|
||||
return $?
|
||||
}
|
||||
|
||||
run_python_unit_tests() {
|
||||
run_command "python -m pytest -s"
|
||||
return $?
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user