Skip to content

Commit

Permalink
Reproducer for poo#58826
Browse files Browse the repository at this point in the history
Run with: CLEMIX_EXCLUDE='^(?!no_res)' CLEMIX_NO_BOOT=1

If running with DO_NOT_FAIL=1, the issue disappear.
  • Loading branch information
cfconrad committed Oct 29, 2019
1 parent 9df22f6 commit b2204b6
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/main_common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1841,6 +1841,25 @@ sub load_extra_tests_udev {
loadtest "kernel/udev_no_symlink";
}

sub load_extra_tests_clemix {
my $basedir = $bmwqemu::vars{CASEDIR} . '/tests/';
my $tests_dir = $basedir . 'clemix/';
my $exclude = get_var('CLEMIX_EXCLUDE', '$a');
my @tests;
find({wanted => sub {
return unless -f $_;
return unless $_ =~ /\.pm$/;
my $name = substr($_, length($basedir), -3);
return if (basename($name) =~ $exclude);
push(@tests, $name);
}, no_chdir => 1}, $tests_dir);
@tests = sort(@tests);

for my $t (@tests) {
loadtest $t;
}
}

sub load_networkd_tests {
loadtest 'networkd/networkd_init';
loadtest 'networkd/networkd_dhcp';
Expand Down
5 changes: 5 additions & 0 deletions products/sle/main.pm
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,11 @@ $testapi::distri->set_expected_autoinst_failures(create_list_of_autoinst_failure

return 1 if load_yaml_schedule;

if (get_var('CLEMIX_NO_BOOT')) {
load_extra_tests();
return 1;
}

if (is_jeos) {
load_jeos_tests();
}
Expand Down
9 changes: 9 additions & 0 deletions tests/clemix/no_res.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use Mojo::Base 'opensusebasetest';
use testapi;

sub run {
sleep 10 if (get_var('DO_NOT_FAIL'));
record_info('FOO', 'BAR');
}

1;
9 changes: 9 additions & 0 deletions tests/clemix/no_res1.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use Mojo::Base 'opensusebasetest';
use testapi;

sub run {
sleep 10 if (get_var('DO_NOT_FAIL'));
record_info('FOO', 'BAR');
}

1;
9 changes: 9 additions & 0 deletions tests/clemix/no_res2.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use Mojo::Base 'opensusebasetest';
use testapi;

sub run {
sleep 10 if (get_var('DO_NOT_FAIL'));
record_info('FOO', 'BAR');
}

1;
9 changes: 9 additions & 0 deletions tests/clemix/no_res3.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use Mojo::Base 'opensusebasetest';
use testapi;

sub run {
sleep 10 if (get_var('DO_NOT_FAIL'));
record_info('FOO', 'BAR');
}

1;
8 changes: 8 additions & 0 deletions tests/clemix/no_res4.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
use Mojo::Base 'opensusebasetest';
use testapi;

sub run {
sleep 60;
}

1;

0 comments on commit b2204b6

Please sign in to comment.