From a759be03b2ed45d0f0e7b95900e798d1a6e9e1b6 Mon Sep 17 00:00:00 2001 From: Sondre Sortland Date: Thu, 1 Oct 2020 14:06:39 +0200 Subject: [PATCH] Install built version in libres in komodo PR test Python tests in the komodo PR tests have not been running against the python code in the PR. This PR fixes that by adding the python files in the build folder to PYTHONPATH and updating LD_LIBRARY_PATH so the correct .so files are used when running the tests. --- ci/jenkins/testkomodo.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/jenkins/testkomodo.sh b/ci/jenkins/testkomodo.sh index 719704a564..b555c3be1b 100644 --- a/ci/jenkins/testkomodo.sh +++ b/ci/jenkins/testkomodo.sh @@ -20,6 +20,8 @@ copy_test_files () { install_package () { local PWD=$(pwd) export ERT_SITE_CONFIG=$PWD/share/ert/site-config + export PYTHONPATH=$CI_SOURCE_ROOT/cmake-build/lib/python3.6/site-packages:${PYTHONPATH:-} + export LD_LIBRARY_PATH=$CI_SOURCE_ROOT/cmake-build/lib:$CI_SOURCE_ROOT/cmake-build/lib64:${LD_LIBRARY_PATH:-} } start_tests () {