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

Give the reason of "expect fail" failure #1849

Open
qiankehan opened this issue Sep 26, 2018 · 0 comments
Open

Give the reason of "expect fail" failure #1849

qiankehan opened this issue Sep 26, 2018 · 0 comments

Comments

@qiankehan
Copy link
Contributor

The expect of command pass is common while expect fail is not. It is confused to debug a case failure when expect fail but success if no extra msg given:

2018-09-26 10:58:19,044 stacktrace       L0044 ERROR| Reproduced traceback from: /root/avocado/avocado/core/test.py:864
2018-09-26 10:58:19,044 stacktrace       L0047 ERROR| Traceback (most recent call last):
2018-09-26 10:58:19,044 stacktrace       L0047 ERROR|   File "/root/avocado-vt/avocado_vt/test.py", line 297, in runTest
2018-09-26 10:58:19,044 stacktrace       L0047 ERROR|     raise self.__status  # pylint: disable=E0702
2018-09-26 10:58:19,045 stacktrace       L0047 ERROR| TestFail: Run '/bin/virsh attach-disk --domain avocado-vt-vm1 --source /var/tmp/avocado_w4K5Mq/native.raw --target sda ${disk_attach_bus_option}' expect fail, but run successfully.

Could you please add extra msg why expect failure for all "expect fail" code?
@chunfuwen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant