Use oe.path.join() to avoid having to strip leading slashes.
Signed-off-by: Ross Burton <[email protected]>
---
meta/classes-recipe/ptest-cargo.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes-recipe/ptest-cargo.bbclass
b/meta/classes-recipe/ptest-cargo.bbclass
index 30463e117b7..f4c881c2f9d 100644
--- a/meta/classes-recipe/ptest-cargo.bbclass
+++ b/meta/classes-recipe/ptest-cargo.bbclass
@@ -85,7 +85,7 @@ python do_install_ptest_cargo() {
cargo_test_binaries_file = d.getVar('CARGO_TEST_BINARIES_FILES')
rust_test_args = d.getVar('RUST_TEST_ARGS') or ""
- ptest_dir = os.path.join(dest_dir, ptest_path.lstrip('/'))
+ ptest_dir = oe.path.join(dest_dir, ptest_path)
os.makedirs(ptest_dir, exist_ok=True)
test_bins = []
--
2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#243184):
https://lists.openembedded.org/g/openembedded-core/message/243184
Mute This Topic: https://lists.openembedded.org/mt/120699544/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-