Project

General

Profile

action #12398

hide echoing to serial port in testapi calls from output in screenshots

Added by okurz about 4 years ago. Updated about 1 year ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2016-06-19
Due date:
% Done:

0%

Estimated time:
Difficulty:
Duration:

Description

user story

As a user using videos recorded by openQA I don't want to get confused by weird hash strings seen in screenshots and videos so that these videos can also be used as simple instruction videos and are easier to understand by everyone.

acceptance criteria

  • AC1: No auto-generated content is shown in terminals that is not explicitly coming from the tests
  • AC2: The existing behaviour of wait_serial/script_run is preserved

idea

Call

declare -r PROMPT_COMMAND="fc -nl -1 2>&1 > $serialdev"

when setting the bash-prompt, e.g. where we set it to '$ ' or '# ', to forward the output of the last command to the serial port. To do what we did before using hashed_string we can try to rely on internal tools of the SUT for this. It's linux specific at this point anyway so it might even be a good idea to move it completely out of the (lower-level) of the testapi at all.


Related issues

Related to openQA Tests - action #44843: [functional][u][epic] Cleanup the use of serial-/virtio-/ssh-consoles in our tests (was: use $self->select_serial_terminal instead of checking IPMI in every module)Workable2018-12-13

Related to openQA Project - action #45143: Suppress the prompt sign in the "expected output" of serial consoles (or virtio-console)Rejected2018-12-13

History

#1 Updated by okurz almost 4 years ago

  • Target version set to future

#2 Updated by okurz about 2 years ago

  • Target version changed from future to future

#3 Updated by okurz over 1 year ago

  • Related to action #44843: [functional][u][epic] Cleanup the use of serial-/virtio-/ssh-consoles in our tests (was: use $self->select_serial_terminal instead of checking IPMI in every module) added

#4 Updated by okurz about 1 year ago

  • Related to action #45143: Suppress the prompt sign in the "expected output" of serial consoles (or virtio-console) added

#5 Updated by okurz about 1 year ago

  • Category changed from 132 to Feature requests

Also available in: Atom PDF