Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run everest test in komodo #8827

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion ci/testkomodo.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -33,6 +34,13 @@ run_ert_with_opm () {
popd
}

run_everest_tests () {
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"
}

start_tests () {
export NO_PROXY=localhost,127.0.0.1

Expand Down Expand Up @@ -67,10 +75,12 @@ start_tests () {
run_ert_with_opm
return_code_4=$?

DanSava marked this conversation as resolved.
Show resolved Hide resolved
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
Expand Down
Loading