| Message ID | 20260811104428.1875677-1-ross.burton@arm.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | [1/2] classes/ptest-cargo: use oe.path.join instead of os.path.join | expand |
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 = []
Use oe.path.join() to avoid having to strip leading slashes. Signed-off-by: Ross Burton <ross.burton@arm.com> --- meta/classes-recipe/ptest-cargo.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)