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

Dependencies weren't fulfilled fix #5731

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

richtja
Copy link
Contributor

@richtja richtja commented Jul 17, 2023

This PR adds information about skipping test due to the missing
dependencies.

Before this PR:

avocado run /tmp/test.py
JOB ID     : b17da893039e9d2deb33445a277ed2da40739a0d
JOB LOG    :
/home/janrichter/avocado/job-results/job-2023-04-20T13.55-b17da89/job.log
RESULTS    : PASS 0 | ERROR 0 | FAIL 0 | SKIP 1 | WARN 0 | INTERRUPT 0 |
CANCEL 0
JOB HTML   :
/home/janrichter/avocado/job-results/job-2023-04-20T13.55-b17da89/results.html
JOB TIME   : 2.20 s

After this PR:

avocado run /tmp/test.py
JOB ID     : b17da893039e9d2deb33445a277ed2da40739a0d
JOB LOG    :
/home/janrichter/avocado/job-results/job-2023-04-20T13.55-b17da89/job.log
 (1/1) /tmp/test.py:PassTest.test: STARTED
 (1/1) /tmp/test.py:PassTest.test: SKIP: Dependecies wasn't fulfilled.
RESULTS    : PASS 0 | ERROR 0 | FAIL 0 | SKIP 1 | WARN 0 | INTERRUPT 0 |
CANCEL 0
JOB HTML   :
/home/janrichter/avocado/job-results/job-2023-04-20T13.55-b17da89/results.html
JOB TIME   : 2.20 s

Reference: #5657
Signed-off-by: Jan Richter [email protected]

This will add kwargs variable to the Finish message utility, which will
make the utility much the utility more variable for different types of
use cases.

Signed-off-by: Jan Richter <[email protected]>
This will remove the hard coded messages dicts from `Worker` and leave
the generation of the messages to avocado.core.utils.messages. This
change increases the readability and maintainability of `Worker`
messages.

Signed-off-by: Jan Richter <[email protected]>
This commit adds information about skipping test due to the missing
dependencies.

Before this commit:
```
avocado run /tmp/test.py
JOB ID     : b17da893039e9d2deb33445a277ed2da40739a0d
JOB LOG    :
/home/janrichter/avocado/job-results/job-2023-04-20T13.55-b17da89/job.log
RESULTS    : PASS 0 | ERROR 0 | FAIL 0 | SKIP 1 | WARN 0 | INTERRUPT 0 |
CANCEL 0
JOB HTML   :
/home/janrichter/avocado/job-results/job-2023-04-20T13.55-b17da89/results.html
JOB TIME   : 2.20 s
```

After this commit:
```
avocado run /tmp/test.py
JOB ID     : b17da893039e9d2deb33445a277ed2da40739a0d
JOB LOG    :
/home/janrichter/avocado/job-results/job-2023-04-20T13.55-b17da89/job.log
 (1/1) /tmp/test.py:PassTest.test: STARTED
 (1/1) /tmp/test.py:PassTest.test: SKIP: Dependecies wasn't fulfilled.
RESULTS    : PASS 0 | ERROR 0 | FAIL 0 | SKIP 1 | WARN 0 | INTERRUPT 0 |
CANCEL 0
JOB HTML   :
/home/janrichter/avocado/job-results/job-2023-04-20T13.55-b17da89/results.html
JOB TIME   : 2.20 s
```

Reference: avocado-framework#5657
Signed-off-by: Jan Richter <[email protected]>
@richtja richtja added the bug label Jul 17, 2023
@richtja richtja requested a review from clebergnu July 17, 2023 09:29
@richtja richtja self-assigned this Jul 17, 2023
@richtja richtja linked an issue Jul 17, 2023 that may be closed by this pull request
Copy link
Contributor

@clebergnu clebergnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and works great:

avocado run examples/tests/dependency_ansible.py 
JOB ID     : 22a2370074ded7ad61e47ec7c5565ceb2449a6ef
JOB LOG    : /home/cleber/avocado/job-results/job-2023-07-17T18.19-22a2370/job.log
 (2/2) examples/tests/dependency_ansible.py:UserByAnsible.test: STARTED
 (2/2) examples/tests/dependency_ansible.py:UserByAnsible.test:  SKIP: Dependency was not fulfilled.
 (1/2) examples/tests/dependency_ansible.py:FileByAnsible.test: STARTED
 (1/2) examples/tests/dependency_ansible.py:FileByAnsible.test:  PASS (0.01 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 1 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /home/cleber/avocado/job-results/job-2023-07-17T18.19-22a2370/results.html
JOB TIME   : 4.72 s

Thanks!

@clebergnu clebergnu merged commit bd72146 into avocado-framework:master Jul 17, 2023
@richtja richtja deleted the result_missing branch July 18, 2023 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Test result missing when the dependencies weren't fulfilled
2 participants