Last active
December 17, 2018 09:31
-
-
Save foursixnine/0adecc8a72ec44fc55b5def70c5f5fb3 to your computer and use it in GitHub Desktop.
pairprogramming
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use feature 'say'; | |
use Data::Dump qw(pp); | |
my $serial_failures = []; | |
push @$serial_failures, {type => 'hard', message => 'welcome screen found', pattern => quotemeta 'Welcome'}; | |
push @$serial_failures, {type => 'soft', message => 'Linux thingie found', pattern => quotemeta 'Linux version'}; | |
push @$serial_failures, {type => 'soft', message => 'bsc#1112109', pattern => qr/serial-getty.*service: Service RestartSec=.*ms expired, scheduling restart/}; | |
say pp($serial_failures); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ message => "welcome screen found", pattern => "Welcome", type => "hard" }, | |
{ | |
message => "Linux thingie found", | |
pattern => "Linux\\ version", | |
type => "soft", | |
}, | |
{ | |
message => "bsc#1112109", | |
pattern => qr/serial-getty.*service: Service RestartSec=.*ms expired, scheduling restart/, | |
type => "soft", | |
}, | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in known_bugs module | |
sub prepare_list_of_failures { | |
my $serial_failures = []; | |
push @$serial_failures, {type => 'hard', message => 'welcome screen found', pattern => quotemeta 'Welcome'}; | |
push @$serial_failures, {type => 'soft', message => 'Linux thingie found', pattern => quotemeta 'Linux version'}; | |
push @$serial_failures, {type => 'soft', message => 'bsc#1112109', pattern => qr/serial-getty.*service: Service RestartSec=.*ms expired, scheduling restart/}; | |
return $serial_failures; | |
} | |
## in the main.pm | |
$testapi::distri->set_expected_serial_failures(prepare_list_of_failures()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment