Skip to content

Commit

Permalink
systemtest: check requirements for restapi are met
Browse files Browse the repository at this point in the history
The testrunner for system:restapi now checks that modules listed in
requirements.txt are installed and skips the test otherwise.
  • Loading branch information
arogge committed Oct 11, 2021
1 parent e16121d commit a8070b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions systemtests/tests/restapi/testrunner
Expand Up @@ -11,6 +11,12 @@ export TestName
#shellcheck source=environment-local.in
. ./environment-local

requirements="${CMAKE_SOURCE_DIR}/restapi/requirements.txt"

"${PYTHON_EXECUTABLE}" -c \
"import pkg_resources;pkg_resources.require(open('$requirements',mode='r'))" \
|| exit 77

#shellcheck source=../scripts/functions
. "${rscripts}"/functions
"${rscripts}"/cleanup
Expand Down

0 comments on commit a8070b3

Please sign in to comment.