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 --show=test run doesn't return test case result #5717

Closed
chunfuwen opened this issue Jul 11, 2023 · 3 comments
Closed

avocado --show=test run doesn't return test case result #5717

chunfuwen opened this issue Jul 11, 2023 · 3 comments
Labels

Comments

@chunfuwen
Copy link
Contributor

Hello Cleber,
Sometimes ,I use --show=test to dump running output into console for debugging e.g:
avocado --show=test run --vt-type libvirt --vt-machine-type q35 --vt-connect-uri qemu:///system domain_life_cycle.shutdown_domain.negative.paused_state_guest

Previously, e.g running on 92lts, at least I got information indicating whether test case pass or not:


92lts:
Job ID: 2cd388e92e4bd525cab07d5a4433bb59a891605f

type_specific.io-github-autotest-libvirt.domain_life_cycle.shutdown_domain.negative.paused_state_guest: STARTED
type_specific.io-github-autotest-libvirt.domain_life_cycle.shutdown_domain.negative.paused_state_guest: PASS
More information in /root/avocado/job-results/job-2023-06-28T04.40-2cd388e/test-results/1-type_specific.io-github-autotest-libvirt.domain_life_cycle.shutdown_domain.negative.paused_state_guest
Test results available in /root/avocado/job-results/job-2023-06-28T04.40-2cd388e
Not logging /sys/kernel/debug/sched_features (file not found)


But in 102.0, I got nothing about final running status.


102.0:
avocado.test: 1-type_specific.io-github-autotest-libvirt.domain_life_cycle.shutdown_domain.negative.paused_state_guest: vnc_autoport = yes
avocado.test: 1-type_specific.io-github-autotest-libvirt.domain_life_cycle.shutdown_domain.negative.paused_state_guest: Searching for test modules that match 'type = create_destroy_domain' and 'provider = io-github-autotest-libvirt' on this cartesian dict
avocado.test: 1-type_specific.io-github-autotest-libvirt.domain_life_cycle.shutdown_domain.negative.paused_state_guest: cleaning libvirtd logs...


@chunfuwen chunfuwen added the bug label Jul 11, 2023
@richtja
Copy link
Contributor

richtja commented Jul 11, 2023

Hi @chunfuwen, in version 102 we separated the logging streams, now the stream test is only related to the logs generated by test itself. IMO, the best way how you can see the test results is to add the app stream into the show option.

avocado --show=test,app run examples/tests/passtest.py
JOB ID     : 17f3e8aba4f4f7da75918280807520f3cd1d5b5c
JOB LOG    : /home/janrichter/avocado/job-results/job-2023-07-11T09.51-17f3e8a/job.log
 (1/1) examples/tests/passtest.py:PassTest.test: STARTED
avocado.test: 1-examples/tests/passtest.py:PassTest.test: INIT 1-examples/tests/passtest.py:PassTest.test
avocado.test: 1-examples/tests/passtest.py:PassTest.test: PARAMS (key=timeout, path=*, default=None) => None
avocado.test: 1-examples/tests/passtest.py:PassTest.test: Test metadata:
avocado.test: 1-examples/tests/passtest.py:PassTest.test:   filename: /home/janrichter/Avocado/avocado/examples/tests/passtest.py
avocado.test: 1-examples/tests/passtest.py:PassTest.test:   teststmpdir: /var/tmp/avocado_strguxat
avocado.test: 1-examples/tests/passtest.py:PassTest.test: START 1-examples/tests/passtest.py:PassTest.test
avocado.test: 1-examples/tests/passtest.py:PassTest.test: PASS 1-examples/tests/passtest.py:PassTest.test
avocado.test: 1-examples/tests/passtest.py:PassTest.test:
 (1/1) examples/tests/passtest.py:PassTest.test: PASS (0.01 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /home/janrichter/avocado/job-results/job-2023-07-11T09.51-17f3e8a/results.html
JOB TIME   : 1.68 s

@chunfuwen
Copy link
Contributor Author

@richtja thank for your information

@richtja
Copy link
Contributor

richtja commented Jul 12, 2023

@chunfuwen no problem, I am closing this issue as resolved, but feel free to reopen it if you will have any additional questions.

@richtja richtja closed this as completed Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants