Skip to content

Commit

Permalink
Use maxprocesses=2 for cli tests
Browse files Browse the repository at this point in the history
Co-authored-by: Eivind Jahren <[email protected]>
  • Loading branch information
2 people authored and berland committed Nov 13, 2024
1 parent 03871a1 commit b8b3f3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_ert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: CLI Test
if: inputs.test-type == 'cli-tests'
run: |
pytest --cov=ert --cov-report=xml:cov1.xml --junit-xml=junit.xml -n logical -v --benchmark-disable --dist loadgroup tests/ui_tests/cli
pytest --cov=ert --cov-report=xml:cov1.xml --junit-xml=junit.xml -o junit_family=legacy -n logical --maxprocesses=2 -v --benchmark-disable --dist loadgroup tests/ui_tests/cli
- name: Unit Test
if: inputs.test-type == 'unit-tests'
Expand Down
7 changes: 3 additions & 4 deletions ci/testkomodo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ install_test_dependencies () {
pip install ".[dev]"
}

run_ert_with_opm () {
run_ert_with_opm() {
pushd "${CI_TEST_ROOT}"

cp -r "${CI_SOURCE_ROOT}/test-data/flow_example" ert_with_opm
Expand All @@ -24,7 +24,7 @@ run_ert_with_opm () {
ert test_run flow.ert ||
(
# In case ert fails, print log files if they are there:
cat spe1_out/realization-0/iter-0/STATUS || true
cat spe1_out/realization-0/iter-0/STATUS || true
cat spe1_out/realization-0/iter-0/ERROR || true
cat spe1_out/realization-0/iter-0/FLOW.stderr.0 || true
cat spe1_out/realization-0/iter-0/FLOW.stdout.0 || true
Expand All @@ -41,7 +41,7 @@ start_tests () {
pushd ${CI_TEST_ROOT}/tests

# Run all ert tests except tests evaluating memory consumption and tests requiring windows manager (GUI tests)
pytest --eclipse-simulator -n logical --show-capture=stderr -v --max-worker-restart 0 \
pytest --eclipse-simulator -n auto --show-capture=stderr -v --max-worker-restart 0 \
-m "not limit_memory and not requires_window_manager" --benchmark-disable --dist loadgroup
return_code_ert_main_tests=$?

Expand Down Expand Up @@ -72,7 +72,6 @@ start_tests () {

set -e


return_code_combined_tests=0
# We error if one or more returncodes are nonzero
if [ "$return_code_ert_main_tests" -ne 0 ]; then
Expand Down

0 comments on commit b8b3f3b

Please sign in to comment.