Skip to content
Snippets Groups Projects
Commit 8affa5aa authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/ci-python-dune2.9' into 'master'

Fix CI python tests with dune 2.9

See merge request !3403
parents bcf2a6da 89526990
No related branches found
No related tags found
1 merge request!3403Fix CI python tests with dune 2.9
Pipeline #27508 passed
+4
...@@ -206,14 +206,8 @@ test python: ...@@ -206,14 +206,8 @@ test python:
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
DUMUX_NUM_THREADS: 4 DUMUX_NUM_THREADS: 4
script: script:
# restore Python virtual env from cache (job:configure artifacts) (Dune 2.9)
- | - |
if [ -d "build-cmake/dune-env" ]; then if ( [ -d "build-cmake/python" ] && ([ ! -s changedfiles.txt ] || grep -q python "changedfiles.txt")); then
rm -r /dune/modules/dune-common/build-cmake/dune-env
mv build-cmake/dune-env /dune/modules/dune-common/build-cmake/dune-env
fi
- |
if ([ ! -s changedfiles.txt ] || grep -q python "changedfiles.txt"); then
if [ ! -s changedfiles.txt ]; then if [ ! -s changedfiles.txt ]; then
echo "Skipping test selection: considering all Python tests." echo "Skipping test selection: considering all Python tests."
else else
...@@ -234,6 +228,11 @@ test python: ...@@ -234,6 +228,11 @@ test python:
cp /dune/modules/dune-istl/cmake/modules/FindSuperLU.cmake /dune/modules/opm-common/cmake/Modules/FindSuperLU.cmake cp /dune/modules/dune-istl/cmake/modules/FindSuperLU.cmake /dune/modules/opm-common/cmake/Modules/FindSuperLU.cmake
fi fi
# restore Python virtual env from cache (job:configure artifacts) (Dune 2.9)
if [ -d "build-cmake/dune-env" ]; then
rm -r /dune/modules/dune-common/build-cmake/dune-env
mv build-cmake/dune-env /dune/modules/dune-common/build-cmake/dune-env
fi
source bin/testing/ci-setup-python-env.sh source bin/testing/ci-setup-python-env.sh
pushd build-cmake pushd build-cmake
DUNE_LOG_LEVEL=DEBUG ctest --output-on-failure -L python DUNE_LOG_LEVEL=DEBUG ctest --output-on-failure -L python
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment