Project

General

Profile

Actions

action #105759

closed

flaky code coverage in os-autoinst consoles/virtio_terminal.pm

Added by okurz almost 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2022-01-31
Due date:
2022-04-13
% Done:

0%

Estimated time:

Description

Observation

See https://github.com/os-autoinst/os-autoinst/pull/1939#issuecomment-1023298597

https://app.codecov.io/gh/os-autoinst/os-autoinst/compare/1939/changes shows that the method set_pipe_sz would not be covered anymore:

sub set_pipe_sz ($self, $fd, $newsize) {
    no autodie;
    return fcntl($fd, F_SETPIPE_SZ(), int($newsize));    # uncoverable statement

as the return line already has "uncoverable statement" likely we should just add more such statements so that the complete function is excluded

Acceptance criteria

  • AC1: Reported code coverage is stable

Files

virtio-coverage-drop.png (37.8 KB) virtio-coverage-drop.png tinita, 2022-03-15 11:44

Related issues 1 (0 open1 closed)

Copied to openQA Project (public) - action #107254: Flaky code coverage in consoles/VNC.pmResolvedmkittler

Actions
Actions

Also available in: Atom PDF