]> code.ossystems Code Review - openembedded-core.git/commit
ruby: some ptest fixes
authorAndré Draszik <andre.draszik@jci.com>
Tue, 1 Oct 2019 14:29:56 +0000 (15:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Oct 2019 07:48:16 +0000 (08:48 +0100)
commite2205a34e4244afc8e1b227409d2f88fd69c3fac
tree5974bb4754cc5f3a3e391c9dfc4aed574a5cead8
parentf59de3985cddfa6bcf719d59ff3f2165f55dbf6c
ruby: some ptest fixes

* the (new?) ruby expects some additional compiled libraries
  to run, so we need to copy them as part of ptest.
  Fixes errors like:
  # ruby ./runner.rb ./-ext-/vm/test_at_exit.rb
  Run options:

  # Running tests:

  [1/1] TestVM#test_at_exit = 0.06 s
    1) Failure:
  TestVM#test_at_exit [/usr/lib/ruby/ptest/test/-ext-/vm/test_at_exit.rb:7]:

  1. [1/2] Assertion for "stdout"
     | <["begin", "end"]> expected but was
     | <[]>.

  2. [2/2] Assertion for "stderr"
     | <[]> expected but was
     | <["-:1:in `require': cannot load such file -- -test-/vm/at_exit (LoadError)",
     |  "\tfrom -:1:in `<main>'"]>.

* the 'erb' test can't find the erb binary, as we're not
  running this from within the build directory

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/ruby/ruby_2.6.4.bb