Wind River Support Network

HomeDefectsLINCD-1179
Fixed

LINCD-1179 : Fail to run ruby ptest cases: ptest-runner cannot load such file -- /usr/lib64/ruby/ptest/tool/test/runner

Created: Feb 20, 2020    Updated: Feb 24, 2020
Resolved Date: Feb 21, 2020
Found In Version: 10.20.9.0
Fix Version: 10.20.9.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

It fails to run many ruby ptest cases with similar errors:
 ============================================ 
 root@intel-x86-64:/usr/lib64/ruby/ptest# ./run-ptest

...snip...

./test/runner.rb:11:in `require_relative': cannot load such file -- /usr/lib64/ruby/ptest/tool/test/runner (LoadError)

         from ./test/runner.rb:11:in `<main>'

FAIL: test/test_tempfile.rb

Steps to Reproduce

1) setup.sh 
 
     --machine intel-x86-64 --dl-layers --distro wrlinux-cgl --templates feature/xfce feature/busybox feature/libhugetlbfs feature/linux-yocto-dev feature/userspace-next feature/toolchain-next feature/lttng feature/mariadb feature/test feature/valgrind feature/xfce --layers meta-filesystems meta-security-compliance meta-virtualization --dl-layers

 
 2)  . oe-init-build-env
  

3) vim conf/local.conf

IMAGE_INSTALL_append += "  ruby"

 

5) bitbake wrlinux-image-glibc-cgl

 

6) boot the target with selinux=0 enforcing=0

 

7) run command as problem description
Live chat
Online