From c1ce01496c7eec6004eaa18138ee596ff020dbc8 Mon Sep 17 00:00:00 2001 From: DanSava Date: Mon, 30 Sep 2024 13:27:13 +0300 Subject: [PATCH] Run everest test in komodo --- ci/testkomodo.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ci/testkomodo.sh b/ci/testkomodo.sh index a7192570ad9..f211bc4adc3 100755 --- a/ci/testkomodo.sh +++ b/ci/testkomodo.sh @@ -1,5 +1,6 @@ copy_test_files () { cp -r "${CI_SOURCE_ROOT}"/tests "${CI_TEST_ROOT}" + cp -r "${CI_SOURCE_ROOT}"/docs "${CI_TEST_ROOT}"/docs ln -s "${CI_SOURCE_ROOT}"/test-data "${CI_TEST_ROOT}"/test-data ln -s "${CI_SOURCE_ROOT}"/src "${CI_TEST_ROOT}"/src @@ -33,6 +34,20 @@ run_ert_with_opm () { popd } +run_everest_tests () { + if [[ -n "${CI_PR_RUN}" ]]; then + # ignore some tests for komodo testing + python -m pytest tests/everest -s --ignore-glob "*test_ui*" \ + --ignore-glob "*test_visualization_entry*" \ + -m "not simulation_test and not ui_test and not redundant_test" + else + python -m pytest tests/everest -s \ + --ignore-glob "*test_visualization_entry*" \ + -m "not simulation_test and not redundant_test and not ui_test" + xvfb-run -s "-screen 0 640x480x24" --auto-servernum python -m pytest tests/everest -s -m "ui_test" + fi +} + start_tests () { export NO_PROXY=localhost,127.0.0.1 @@ -67,10 +82,12 @@ start_tests () { run_ert_with_opm return_code_4=$? + run_everest_tests + return_code_5=$? set -e # We error if one or more returncodes are nonzero - for code in $return_code_0 $return_code_1 $return_code_2 $return_code_3 $return_code_4; do + for code in $return_code_0 $return_code_1 $return_code_2 $return_code_3 $return_code_4 $return_code_5; do if [ "$code" -ne 0 ]; then echo "One or more tests failed." return 1