Project

General

Profile

action #50945

[tools][svirt] Svirt serial backend gets stalled by new lines in command passed to script_run

Added by pvorel over 2 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
Enhancement to existing tests
Target version:
-
Start date:
2019-04-30
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Svirt serial backend gets stalled by new lines in command passed to script_run.

Workaround is to replace new line in code by new line character, see this diff
from PR#6841 found when working on #45863, but that's not a solution.

------------------------- tests/kernel/install_ltp.pm -------------------------
index c3dc476d8..de108b4cf 100644
@@ -227,19 +227,9 @@ sub install_from_repo {
sub setup_network {
my $content;

  • $content = <<EOF; -# ltp specific setup -pts/1 -pts/2 -pts/3 -pts/4 -pts/5 -pts/6 -pts/7 -pts/8 -pts/9 -EOF
  • assert_script_run("echo \"$content\" >> '/etc/securetty'");
  • # pts in /etc/securetty
  • $content = '# ltp specific setup\npts/1\npts/2\npts/3\npts/4\npts/5\npts/6\npts/7\npts/8\npts/9\n';
  • assert_script_run("printf \"$content\" >> /etc/securetty");

Related issues

Related to openQA Project - action #45863: [s390x][svirt][ltp] Fix serial terminal console implementation for svirt backend and use it's outputResolved

History

#1 Updated by pvorel over 2 years ago

  • Related to action #45863: [s390x][svirt][ltp] Fix serial terminal console implementation for svirt backend and use it's output added

#2 Updated by okurz over 2 years ago

  • Category changed from 132 to Feature requests

#3 Updated by okurz over 1 year ago

  • Priority changed from Normal to Low

#4 Updated by okurz about 1 year ago

  • Project changed from openQA Project to openQA Tests
  • Category changed from Feature requests to Enhancement to existing tests
  • Status changed from New to Resolved

likely solved by coolgw in https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/10516 within os-autoinst-distri-opensuse

Also available in: Atom PDF