Bypass dup chars after snapshot brc#1691487

eg failing jobs:
https://openqa.stg.fedoraproject.org/tests/499908#step/_boot_to_anaconda/7
https://openqa.stg.fedoraproject.org/tests/519326#step/_post_network_static/4

Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
This commit is contained in:
Michel Normand 2019-03-21 10:22:35 +01:00
parent a9c6e69689
commit 37e2f134f1
8 changed files with 17 additions and 1 deletions

View File

@ -7,7 +7,7 @@ use Exporter;
use lockapi; use lockapi;
use testapi; use testapi;
our @EXPORT = qw/run_with_error_check type_safely type_very_safely desktop_vt boot_to_login_screen console_login console_switch_layout desktop_switch_layout console_loadkeys_us do_bootloader boot_decrypt check_release menu_launch_type start_cockpit repo_setup gnome_initial_setup anaconda_create_user check_desktop_clean download_modularity_tests quit_firefox advisory_get_installed_packages advisory_check_nonmatching_packages start_with_launcher quit_with_shortcut disable_firefox_studies select_rescue_mode copy_devcdrom_as_isofile/; our @EXPORT = qw/run_with_error_check type_safely type_very_safely desktop_vt boot_to_login_screen console_login console_switch_layout desktop_switch_layout console_loadkeys_us do_bootloader boot_decrypt check_release menu_launch_type start_cockpit repo_setup gnome_initial_setup anaconda_create_user check_desktop_clean download_modularity_tests quit_firefox advisory_get_installed_packages advisory_check_nonmatching_packages start_with_launcher quit_with_shortcut disable_firefox_studies select_rescue_mode copy_devcdrom_as_isofile bypass_1691487/;
sub run_with_error_check { sub run_with_error_check {
my ($func, $error_screen) = @_; my ($func, $error_screen) = @_;
@ -917,3 +917,10 @@ sha256sum -c /tmp/x
EOF EOF
assert_script_run($_) foreach (split /\n/, $cmd); assert_script_run($_) foreach (split /\n/, $cmd);
} }
sub bypass_1691487 {
if (script_run 'echo "expected command supposed to be typed without error."') {
record_soft_failure 'brc#1691487 bypass';
script_run 'echo "trial bypass dup chars brc#1691487"';
}
}

View File

@ -8,6 +8,7 @@ sub run {
my $self = shift; my $self = shift;
my ($ip, $hostname) = split(/ /, get_var("POST_STATIC")); my ($ip, $hostname) = split(/ /, get_var("POST_STATIC"));
$hostname //= 'localhost.localdomain'; $hostname //= 'localhost.localdomain';
bypass_1691487;
# set up networking # set up networking
setup_tap_static($ip, $hostname); setup_tap_static($ip, $hostname);
} }

View File

@ -5,6 +5,7 @@ use utils;
sub run { sub run {
my $self = shift; my $self = shift;
bypass_1691487;
# set up appropriate repositories # set up appropriate repositories
repo_setup(); repo_setup();
# use --enablerepo=fedora for Modular compose testing (we need to # use --enablerepo=fedora for Modular compose testing (we need to

View File

@ -1,9 +1,11 @@
use base "installedtest"; use base "installedtest";
use strict; use strict;
use testapi; use testapi;
use utils;
sub run { sub run {
my $self=shift; my $self=shift;
bypass_1691487;
# switch to TTY3 for both, graphical and console tests # switch to TTY3 for both, graphical and console tests
$self->root_console(tty=>3); $self->root_console(tty=>3);
validate_script_output 'getenforce', sub { $_ =~ m/Enforcing/ }; validate_script_output 'getenforce', sub { $_ =~ m/Enforcing/ };

View File

@ -8,6 +8,7 @@ use tapnet;
sub run { sub run {
my $self = shift; my $self = shift;
# use FreeIPA server as DNS server # use FreeIPA server as DNS server
bypass_1691487;
assert_script_run "printf 'search domain.local\nnameserver 10.0.2.100' > /etc/resolv.conf"; assert_script_run "printf 'search domain.local\nnameserver 10.0.2.100' > /etc/resolv.conf";
# wait for the server to be ready (do it now just to make sure name # wait for the server to be ready (do it now just to make sure name
# resolution is working before we proceed) # resolution is working before we proceed)

View File

@ -21,6 +21,7 @@ sub run {
$server_ip = '10.0.2.107'; $server_ip = '10.0.2.107';
$server_mutex = 'replica_ready'; $server_mutex = 'replica_ready';
} }
bypass_1691487;
assert_script_run "printf 'search domain.local\nnameserver ${server_ip}' > /etc/resolv.conf"; assert_script_run "printf 'search domain.local\nnameserver ${server_ip}' > /etc/resolv.conf";
assert_script_run "sed -i -e '/^DNS.*/d' /etc/sysconfig/network-scripts/ifcfg-eth0"; assert_script_run "sed -i -e '/^DNS.*/d' /etc/sysconfig/network-scripts/ifcfg-eth0";
assert_script_run "printf '\nDNS1=${server_ip}\n' >> /etc/sysconfig/network-scripts/ifcfg-eth0"; assert_script_run "printf '\nDNS1=${server_ip}\n' >> /etc/sysconfig/network-scripts/ifcfg-eth0";

View File

@ -5,6 +5,7 @@ use utils;
sub run { sub run {
my $self=shift; my $self=shift;
bypass_1691487;
# run firefox and login to cockpit # run firefox and login to cockpit
start_cockpit(1); start_cockpit(1);
# go to the logs screen # go to the logs screen

View File

@ -1,9 +1,11 @@
use base "installedtest"; use base "installedtest";
use strict; use strict;
use testapi; use testapi;
use utils;
sub run { sub run {
my $self = shift; my $self = shift;
bypass_1691487;
# check / is xfs, as it should be on server # check / is xfs, as it should be on server
assert_script_run 'findmnt -M / -o FSTYPE | grep xfs'; assert_script_run 'findmnt -M / -o FSTYPE | grep xfs';
} }