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
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', post_boot_type => soft/hard }>
LTP tests use post_boot_type to change failure type during job runtime so that kernel warnings during boot don't immediately terminate LTP jobs but warnings triggered by LTP tests get reported as 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 type=info will message the user but the module will not fail
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
Checks the journal for known patterns defined in $journal_failures Do not touch unless you know what you're doing