Fixed issue in avocado:utils:distro
In SUSE distro distro.detect() is failing as undefined variable
log:
START 1-generic/sosreport.py:sosreport_test.test;run-cd82
Test metadata:
filename: /root/avocado-fvt-wrapper/tests/avocado-misc-tests/generic/sosreport.py
DATA (filename=output.expected) => NOT FOUND (data sources: variant, test, file)
Reproduced traceback from: /usr/lib/python2.7/site-packages/avocado_framework-58.0-py2.7.egg/avocado/core/test.py:814
Traceback (most recent call last):
File "/root/avocado-fvt-wrapper/tests/avocado-misc-tests/generic/sosreport.py", line 42, in setUp
dist = distro.detect()
File "/usr/lib/python2.7/site-packages/avocado_framework-58.0-py2.7.egg/avocado/utils/distro.py", line 416, in detect
distro_result = probe_instance.get_distro()
File "/usr/lib/python2.7/site-packages/avocado_framework-58.0-py2.7.egg/avocado/utils/distro.py", line 370, in get_distro
with open(self.check_file) as check_file:
AttributeError: 'SUSEProbe' object has no attribute 'check_file'
Signed-off-by: NPraveen K Pandey <praveen@linux.vnet.ibm.com>
Showing
想要评论请 注册 或 登录