diff options
| author | Daniel P. Berrangé <berrange@redhat.com> | 2024-11-21 16:57:41 +0000 |
|---|---|---|
| committer | Alex Bennée <alex.bennee@linaro.org> | 2024-11-25 10:13:41 +0000 |
| commit | f03a81897db14bb56109b6adc8699a91774b3389 (patch) | |
| tree | 7bc531fd21c373a8f61134391db1b6a46d4bc6c8 /tests/functional/qemu_test/testcase.py | |
| parent | 7699e37b2ac32ba4b905b4b22024e93f33337ce7 (diff) | |
| download | focaccia-qemu-f03a81897db14bb56109b6adc8699a91774b3389.tar.gz focaccia-qemu-f03a81897db14bb56109b6adc8699a91774b3389.zip | |
tests/functional: require non-NULL success_message for console wait
When waiting for expected output, the 'success_message' is a mandatory parameter, with 'failure_message' defaulting to None. The code has logic which indicates it was trying to cope with 'success_message' being None and 'failure_message' being non-None but it does not appear able to actually do anything useful. The check for 'success_message is None' will break out of the loop before any check for 'failure_message' has been performed. IOW, for practcal purposes 'success_message' must be non-None unless 'send_string' is set. Assert this expectation and simplify the loop logic. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20241121154218.1423005-15-berrange@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20241121165806.476008-15-alex.bennee@linaro.org>
Diffstat (limited to 'tests/functional/qemu_test/testcase.py')
0 files changed, 0 insertions, 0 deletions