Project

General

Profile

Actions

action #50945

closed

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

Added by pvorel over 5 years ago. Updated over 4 years 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 1 (0 open1 closed)

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

Actions
Actions

Also available in: Atom PDF