[Pkg-linaro-lava-devel] Bug#1102293: lavacli: Fix test_base_dir to handle paths containing dots correctly

Andrej Shadura andrew at shadura.me
Mon Apr 7 12:54:46 BST 2025


Hello,

On Mon, 7 Apr 2025, at 13:39, Lei Yang wrote:
> I'd like to submit a patch for the lavacli package that fixes a failing test in test_lab.py where paths containing dots aren't handled correctly. See the failure in https://ci.debian.net/packages/l/lavacli/unstable/amd64/
>  
> The test_base_dir test is currently comparing paths incorrectly:
>   assert str(config.base_dir) == str(config.filepath).split(".")[0]
>  
> This fails when the temporary test path contains dots (e.g. "/tmp/autopkgtest.xVit3Q/...") because split(".") only removes text after the first dot.
 
Thank you!
Patch applied.

-- 
Cheers,
  Andrej


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