fix tear down and add readme file #2768
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Commit 1
The test result shows test passed with warning when test did not ran. Fix the tear down by adding a check to ensure removal of files only occurs if they exist.
Before fix:
avocado run perf_stress_ng.py -m perf_stress_ng.py.data/perf_stress_ng.yaml
Fetching asset from perf_stress_ng.py:Stressng.test
JOB ID : 2abafaa0af699b4a3918c7838dff061c9e774aaf
JOB LOG : /home/OpTest/avocado-fvt-wrapper/results/job-2024-03-06T04.10-2abafaa/job.log
(1/1) perf_stress_ng.py:Stressng.test;run-coverage-run_type-df37: STARTED
(1/1) perf_stress_ng.py:Stressng.test;run-coverage-run_type-df37: WARN: Test passed but there were warnings during execution. Check the log for details. (1.31 s)
RESULTS : PASS 0 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 1 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/OpTest/avocado-fvt-wrapper/results/job-2024-03-06T04.10-2abafaa/results.html
JOB TIME : 26.02 s
After fix:
avocado run perf_stress_ng.py -m perf_stress_ng.py.data/perf_stress_ng.yaml
Fetching asset from perf_stress_ng.py:Stressng.test
JOB ID : 4d8aed2110dd9338cb85d0d77649e9029cc8df14
JOB LOG : /home/OpTest/avocado-fvt-wrapper/results/job-2024-03-06T04.23-4d8aed2/job.log
(1/1) perf_stress_ng.py:Stressng.test;run-coverage-run_type-df37: STARTED
(1/1) perf_stress_ng.py:Stressng.test;run-coverage-run_type-df37: CANCEL: stress-ng is needed for the test to be run (0.74 s)
RESULTS : PASS 0 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 1
JOB HTML : /home/OpTest/avocado-fvt-wrapper/results/job-2024-03-06T04.23-4d8aed2/results.html
JOB TIME : 23.57 s
debug1.log
avocado run perf_stress_ng.py -m perf_stress_ng.py.data/perf_stress_ng.yaml
Fetching asset from perf_stress_ng.py:Stressng.test
JOB ID : 5e80e55d96efad7e1a655b4ed3baf3eb6d0c3ba0
JOB LOG : /home/avocado-fvt-wrapper/results/job-2024-03-08T08.31-5e80e55/job.log
(1/1) perf_stress_ng.py:Stressng.test;run-coverage-run_type-df37: STARTED
(1/1) perf_stress_ng.py:Stressng.test;run-coverage-run_type-df37: FAIL: CPU load 10 50 80 combination's failed with percentage difference {'50': 4.599999999999994, '80': 8.599999999999994} (201.27 s)
RESULTS : PASS 0 | ERROR 0 | FAIL 1 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/avocado-fvt-wrapper/results/job-2024-03-08T08.31-5e80e55/results.html
JOB TIME : 214.81 s
debug2.log
Commit 2
This commit introduces a README.txt file. The README provides a description of the test, outlines the steps followed during the test execution and lists the prerequisites necessary for running the test successfully.