Wind River Support Network

HomeDefectsLINCD-7154
Fixed

LINCD-7154 : [ptest] ruby-ptest hangs up on standard -config

Created: Oct 27, 2021    Updated: Dec 12, 2021
Resolved Date: Nov 16, 2021
Found In Version: 10.21.45.0
Fix Version: 10.21.48.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

run ruby ptest hang as below:

...
PASS: test/irb/test_raise_no_backtrace_exception.rb
PASS: test/irb/test_context.rb
PASS: test/irb/test_init.rb
PASS: test/irb/test_history.rb
PASS: test/irb/test_cmd.rb
FAIL: test/irb/test_completion.rb
PASS: test/irb/yamatanooroti/test_rendering.rb
PASS: test/irb/test_color_printer.rb
PASS: test/irb/test_workspace.rb
PASS: test/irb/test_option.rb
PASS: test/test_observer.rb
PASS: test/nkf/test_kconv.rb
PASS: test/nkf/test_nkf.rb
PASS: test/syslog/test_syslog_logger.rb
PASS: test/net/imap/test_imap_response_parser.rb
PASS: test/net/imap/test_imap.rb
PASS: test/net/protocol/test_protocol.rb
PASS: test/net/smtp/test_ssl_socket.rb
PASS: test/net/smtp/test_response.rb
FAIL: test/net/smtp/test_starttls.rb
FAIL: test/net/smtp/test_sslcontext.rb
#<Thread:0x0000560c7d6f16b8 /usr/lib64/ruby/ptest/test/net/smtp/test_smtp.rb:177 run> terminated with exception (report_on_exception is true):
/usr/lib64/ruby/3.0.0/socket.rb:806:in `select': closed stream (IOError)
        from /usr/lib64/ruby/3.0.0/socket.rb:806:in `block in accept_loop'
        from /usr/lib64/ruby/3.0.0/socket.rb:805:in `loop'
        from /usr/lib64/ruby/3.0.0/socket.rb:805:in `accept_loop'
        from /usr/lib64/ruby/ptest/test/net/smtp/test_smtp.rb:265:in `accept'
        from /usr/lib64/ruby/ptest/test/net/smtp/test_smtp.rb:178:in `block in test_eof_error_backtrace'

Workaround

N/A

Steps to Reproduce

1) setup.sh

/lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh  --machine intel-x86-64 --dl-layers --distro wrlinux --templates feature/xfce feature/busybox feature/lttng feature/mariadb feature/network-bond-libteam feature/package-management feature/ptest feature/qtbase feature/qtcreator feature/snmp feature/unit-test feature/valgrind feature/xfce --layers meta-filesystems meta-qt5 meta-security-compliance meta-virtualization --dl-layers



 

2). ./environment-setup-x86_64-wrlinuxsdk-linux

 

3) . ./oe-init-build-env build_test

4) 4)   add to local.conf

IMAGE_INSTALL_append = " ruby" 

4) bitbake wrlinux-image-glibc-std
5)boot on the board and startup

6) login and run ptest
cd /usr/lib64/ruby/ptest/
./run-ptest
Live chat
Online