fix toputils: make it more robust to paths that contain _tops#14
fix toputils: make it more robust to paths that contain _tops#14marmarek merged 2 commits intoQubesOS:mainfrom
_tops#14Conversation
Avoids IndexError from `relpath[1]`. Fixes #9949.
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2025051703-4.3&flavor=pull-requests Test run included the following:
New failures, excluding unstableCompared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2025031804-4.3&flavor=update
Failed tests24 failures
Fixed failuresCompared to: https://openqa.qubes-os.org/tests/132953#dependencies 14 fixed
Unstable testsDetails
Performance TestsPerformance degradation:1 performance degradations
Remaining performance tests:15 tests
|
Previously, `_tops/this_is_not_tops/test.top` would result in a relpath of `_tops/this_is_not` (cut off in the middle of a directory name).
Previously, the code was simply splitting paths by the text
_tops/.There were two errors:
_tops/(only_tops)._tops/because we were taking the first index of the split only, so_tops/this_is_not_a_tops/test.topwould result in a relpath of_tops/this_is_not_a(cut off in the middle of the directory).Fixes #9949.