[Pkg-linaro-lava-devel] Bug#1102396: Fix failing test_invalid_template to handle expanded error messages in lava

Yang, Lei Lei.Yang at windriver.com
Tue Apr 8 16:11:35 BST 2025


Package: lava
Version: 2024.09-1.1
Severity: normal
Tags: patch

Dear Maintainer,

I found test_invalid_template in test_sync.py failing due to more detailed error messages now being returned. The test expected a simple output format, but the actual output now includes search paths.  See the failed debci in https://ci.debian.net/packages/l/lava/unstable/amd64/

This patch modifies the test to use line-by-line assertions for the first three lines and a partial string match for the fourth line containing the template name, making it resilient to formatting changes while preserving the test's intent.

Verified logs:

autopkgtest [22:48:53]: test lava-coordinator:  - - - - - - - - - - results - - - - - - - - - -
lava-coordinator     PASS
autopkgtest [22:48:54]: @@@@@@@@@@@@@@@@@@@@ summary
management           PASS
testsuite            PASS
lava-common          PASS (superficial)
lava-dispatcher-host PASS
lava-coordinator     PASS

Thank you for considering this patch attached

Lei



More information about the Pkg-linaro-lava-devel mailing list