Skip to content

Commit

Permalink
avocado: limit parallel tasks to 1 with nrunner
Browse files Browse the repository at this point in the history
With version 91.0 Avocado have switched the default runner from
an implementation named internally runner to a new architecture,
that allows parallel execution of tests, called nrunner.
Please, find more info at
https://avocado-framework.readthedocs.io/en/91.0/releases/91_0.html
and
https://avocado-framework.readthedocs.io/en/91.0/guides/contributor/chapters/runners.html?highlight=nrunner-max-parallel-tasks

In the case of pok, you could continue using the legacy runner,
setting --test-runner=runner and sticking to the next LTS version
that will be 92.0 or switch to nrunner and disable
parallel execution by setting --nrunner-max-parallel-tasks 1

Signed-off-by: Ana Guerrero Lopez <anguerre@redhat.com>
  • Loading branch information
ana committed Oct 4, 2021
1 parent a2666ee commit a9145c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions misc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
avocado-framework==82.0
avocado-framework-plugin-loader-yaml==82.0
avocado-framework-plugin-result-html==82.0
avocado-framework-plugin-varianter-yaml-to-mux==82.0
avocado-framework==91.0
avocado-framework-plugin-loader-yaml==91.0
avocado-framework-plugin-result-html==91.0
avocado-framework-plugin-varianter-yaml-to-mux==91.0
Jinja2==2.11.3
MarkupSafe==1.1.1
PyYAML==5.4
2 changes: 1 addition & 1 deletion testsuite/multiprocessing_unitary_tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
POK_PATH := $(CURDIR)/../..

check::
avocado run --xunit report.xml --mux-yaml testconfig.yaml -- $(POK_PATH)/misc/execution_test_multiprocessing.py
avocado run --nrunner-max-parallel-tasks 1 --xunit report.xml --mux-yaml testconfig.yaml -- $(POK_PATH)/misc/execution_test_multiprocessing.py
2 changes: 1 addition & 1 deletion testsuite/unitary_tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
POK_PATH := $(CURDIR)/../..

check::
avocado run --xunit report.xml --mux-yaml testconfig.yaml -- $(POK_PATH)/misc/execution_test.py
avocado run --nrunner-max-parallel-tasks 1 --xunit report.xml --mux-yaml testconfig.yaml -- $(POK_PATH)/misc/execution_test.py

0 comments on commit a9145c2

Please sign in to comment.