summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiaying Song <jiaying.song.cn@windriver.com>2024-10-31 15:43:47 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-01 12:13:18 +0000
commitee7e6badab44e66a88ed1c14d7c92662404d6ebe (patch)
treeccb74a37cae1515b138719f386e77ba216de7b6a
parent11dec824bddd3eb35a7a94916646c138afd15ec1 (diff)
downloadpoky-ee7e6badab44e66a88ed1c14d7c92662404d6ebe.tar.gz
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 `<top (required)>' from ./test/runner.rb:5:in `require_relative' from ./test/runner.rb:5:in `<main>' (From OE-Core rev: 4f9fd1255d5a75e3597e6c8ab3fc243b17fca583) Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/ruby/ruby_3.3.5.bb2
1 files changed, 1 insertions, 1 deletions
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 () {
99 99
100do_install_ptest () { 100do_install_ptest () {
101 cp -rf ${S}/test ${D}${PTEST_PATH}/ 101 cp -rf ${S}/test ${D}${PTEST_PATH}/
102 102 install -D ${S}/tool/test/init.rb ${D}${PTEST_PATH}/tool/test/init.rb
103 install -D ${S}/tool/test/runner.rb ${D}${PTEST_PATH}/tool/test/runner.rb 103 install -D ${S}/tool/test/runner.rb ${D}${PTEST_PATH}/tool/test/runner.rb
104 cp -r ${S}/tool/lib ${D}${PTEST_PATH}/tool/ 104 cp -r ${S}/tool/lib ${D}${PTEST_PATH}/tool/
105 mkdir -p ${D}${PTEST_PATH}/lib 105 mkdir -p ${D}${PTEST_PATH}/lib