You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the test is interrupted based on its own timeout, it is marked as INTERRUPT, But when job is interrupted on timeout all tests are marked as SKIP even they already started. The behavior should be the same, and the test should be marked as INTERRUPT as well.
Steps to reproduce $ avocado run --job-timeout 1 examples/tests/sleeptest.py
Expected behavior
$ avocado run --job-timeout 1 examples/tests/sleeptest.py
JOB ID : fa15b397365574621e3c04f68aba1071f22ab198
JOB LOG : /home/janrichter/avocado/job-results/job-2022-11-16T10.19-fa15b39/job.log
(1/1) examples/tests/sleeptest.py:SleepTest.test: STARTED
(1/1) examples/tests/sleeptest.py:SleepTest.test: INTERRUPTED: timeout (1.01 s)
RESULTS : PASS 0 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 1 | CANCEL 0
JOB HTML : /home/janrichter/avocado/job-results/job-2022-11-16T10.19-fa15b39/results.html
JOB TIME : 1.67 s
Current behavior
$ avocado run examples/tests/timeouttest.py
JOB ID : 8b61821419fece275806e5e3c5f677b470abb193
JOB LOG : /home/janrichter/avocado/job-results/job-2022-11-16T10.16-8b61821/job.log
(1/1) examples/tests/timeouttest.py:TimeoutTest.test: STARTED
(1/1) examples/tests/timeouttest.py:TimeoutTest.test: INTERRUPTED: timeout (3.01 s)
RESULTS : PASS 0 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 1 | CANCEL 0
JOB HTML : /home/janrichter/avocado/job-results/job-2022-11-16T10.16-8b61821/results.html
JOB TIME : 4.09 s
$ avocado run --job-timeout 1 examples/tests/sleeptest.py
JOB ID : fa15b397365574621e3c04f68aba1071f22ab198
JOB LOG : /home/janrichter/avocado/job-results/job-2022-11-16T10.19-fa15b39/job.log
(1/1) examples/tests/sleeptest.py:SleepTest.test: STARTED
RESULTS : PASS 0 | ERROR 0 | FAIL 0 | SKIP 1 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/janrichter/avocado/job-results/job-2022-11-16T10.19-fa15b39/results.html
JOB TIME : 1.67 s
System information (please complete the following information):
Describe the bug
When the test is interrupted based on its own timeout, it is marked as INTERRUPT, But when job is interrupted on timeout all tests are marked as SKIP even they already started. The behavior should be the same, and the test should be marked as INTERRUPT as well.
Steps to reproduce
$ avocado run --job-timeout 1 examples/tests/sleeptest.py
Expected behavior
Current behavior
System information (please complete the following information):
OS:
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 36 (Thirty Six)
Release: 36
Codename: ThirtySix
Avocado version: avocado master
Avocado installation method: pip, rpm, github ?
Additional information
This bug was spotted by @eskultety
The text was updated successfully, but these errors were encountered: