Project

General

Profile

Actions

action #69484

closed

perl warning in os-autoinst t/99-full-stack.t "Subroutine OpenQA::Isotovideo::Utils::diag redefined at …os-autoinst/t/data/tests/main.pm line 19." not caught

Added by okurz over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2020-07-31
Due date:
% Done:

0%

Estimated time:

Description

Observation

Calling prove -I. -v t/99-full-stack.t yields

t/99-full-stack.t .. 
# data dir: /home/okurz/local/os-autoinst/os-autoinst/t/data/
# pool dir: /tmp/99-full-stack.t-9bcO/pool/
[2020-07-31T12:08:29.269 CEST] [debug] Current version is 4a6de446ae59b7a8af7d2bdecf0279eb7b7a366d [interface v20]
[2020-07-31T12:08:29.279 CEST] [debug] git hash in /home/okurz/local/os-autoinst/os-autoinst/t/data//tests: 4a6de446ae59b7a8af7d2bdecf0279eb7b7a366d
Subroutine OpenQA::Isotovideo::Utils::diag redefined at /home/okurz/local/os-autoinst/os-autoinst/t/data/tests/main.pm line 19.

the last line, a perl warning, should stop the test from executing and fail due to our use of "Test::Warnings" but probably that does not work as we spawn isotovideo in a subprocess

Acceptance criteria

  • AC1: perl warnings during test execution fail tests

Suggestions

Maybe we can apply Test::Warnings for the subprocess or we handle that with #10704

Actions

Also available in: Atom PDF