From ee7e6badab44e66a88ed1c14d7c92662404d6ebe Mon Sep 17 00:00:00 2001 From: Jiaying Song Date: Thu, 31 Oct 2024 15:43:47 +0800 Subject: ruby: Add init.rb file to PTEST installation path This patch copies the init.rb file to the tool testing directory in the PTEST installation path during installation. This modification can address the following errors: BEGIN: /usr/lib64/ruby/ptest /usr/lib64/ruby/ptest/tool/test/runner.rb:4:in `require_relative': cannot load such file -- /usr/lib64/ruby/ptest/tool/test/init (LoadError) from /usr/lib64/ruby/ptest/tool/test/runner.rb:4:in `' from ./test/runner.rb:5:in `require_relative' from ./test/runner.rb:5:in `
' (From OE-Core rev: 4f9fd1255d5a75e3597e6c8ab3fc243b17fca583) Signed-off-by: Jiaying Song Signed-off-by: Richard Purdie --- meta/recipes-devtools/ruby/ruby_3.3.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/ruby/ruby_3.3.5.bb b/meta/recipes-devtools/ruby/ruby_3.3.5.bb index 5a7b8137aa..c5609893ca 100644 --- a/meta/recipes-devtools/ruby/ruby_3.3.5.bb +++ b/meta/recipes-devtools/ruby/ruby_3.3.5.bb @@ -99,7 +99,7 @@ do_install:append:class-target () { do_install_ptest () { cp -rf ${S}/test ${D}${PTEST_PATH}/ - + install -D ${S}/tool/test/init.rb ${D}${PTEST_PATH}/tool/test/init.rb install -D ${S}/tool/test/runner.rb ${D}${PTEST_PATH}/tool/test/runner.rb cp -r ${S}/tool/lib ${D}${PTEST_PATH}/tool/ mkdir -p ${D}${PTEST_PATH}/lib -- cgit v1.2.3-54-g00ecf