lib/known_bugs.pm

KNOWN_BUGS

SYNOPSIS

use lib::known_bugs

Allows detection of known errors on the serial console

As we have reocurring problems that can be easily detected on serial level we have decided to detect and show them in opneQA to ease up review and where possible only softfail to not lose the whole test suite

create_list_of_serial_failures

Returns the list of known bug patterns on the serial logs my $list = create_list_of_serial_failures(); This will be used in main.pm to initialize the backend with that list: $testapi::distri-set_expected_serial_failures($list);>

To add a known bug simply copy and adapt the following line: push @$serial_failures, {type = soft/hard, message => 'Errormsg', pattern => quotemeta 'ErrorPattern' }>

create_list_of_autoinst_failures

To add a known bug simply copy and adapt the following line: push @$autoinst_failures, {type = soft/hard, message => 'Errormsg', pattern => quotemeta 'ErrorPattern' };> type=soft will force the testmodule result to softfail type=hard will just emit a soft fail message but the module will do a normal fail

create_list_of_journal_failures

To add a known bug simply copy and adapt the following line: push @$journal_failures, {type = soft/hard, message => 'Errormsg', pattern => quotemeta 'ErrorPattern' };> type=soft will force the testmodule result to softfail type=hard will just emit a soft fail message but the module will do a normal fail

upload_journal

Checks the journal for known patterns defined in $journal_failures Do not touch unless you know what you're doing