Closed disgoel closed 3 weeks ago
Fix the teardown function to prevent AttributeError by adding checks to see if the attribute and path exists before trying to remove it.
Before fix: ERROR: 'Stressng' object has no attribute 'loop_dev' ERROR: 'Stressng' object has no attribute 'stressmnt'
After fix: CANCEL: Build Failed, Please check the build logs for details !!
avocado run stress-ng.py -m stress-ng.py.data/stress-ng-fs.yaml Fetching asset from stress-ng.py:Stressng.test JOB ID : 6fc94c4cdaeba93499384ac1ca4b3790620f005a JOB LOG : /home/avocado-fvt-wrapper/results/job-2024-10-23T13.59-6fc94c4/job.log (1/1) stress-ng.py:Stressng.test;run-exclude-fs_type-ext4-stressors-workers-f640: STARTED (1/1) stress-ng.py:Stressng.test;run-exclude-fs_type-ext4-stressors-workers-f640: CANCEL: Build Failed, Please check the build logs for details !! (10.28 s) RESULTS : PASS 0 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 1 JOB HTML : /home/avocado-fvt-wrapper/results/job-2024-10-23T13.59-6fc94c4/results.html JOB TIME : 27.14 s
Fix the teardown function to prevent AttributeError by adding checks to see if the attribute and path exists before trying to remove it.
Before fix: ERROR: 'Stressng' object has no attribute 'loop_dev' ERROR: 'Stressng' object has no attribute 'stressmnt'
After fix: CANCEL: Build Failed, Please check the build logs for details !!