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

Avocado --job-timeout SKIP tests instead of INTERRUPT #5522

Closed
richtja opened this issue Nov 16, 2022 · 1 comment
Closed

Avocado --job-timeout SKIP tests instead of INTERRUPT #5522

richtja opened this issue Nov 16, 2022 · 1 comment

Comments

@richtja
Copy link
Contributor

richtja commented Nov 16, 2022

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):

  • 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

@richtja richtja added this to the #100 (the 100) milestone Nov 16, 2022
@richtja richtja self-assigned this Nov 16, 2022
@richtja
Copy link
Contributor Author

richtja commented Nov 23, 2022

It looks like, we already have this issue open in #5295

@richtja richtja closed this as completed Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant