summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilck <mwilck@suse.com>2018-04-24 22:24:43 +0200
committerMichal Sekletár <msekleta@redhat.com>2020-11-02 11:43:15 +0100
commit2ab0a8d00bc48d3531e953d938db889d8a932d65 (patch)
tree283c2671fd1b1d630668ab594121fadca3ade27d
parent4a0ec82daf32446519e1d86329bb802325b82104 (diff)
downloadsystemd-2ab0a8d00bc48d3531e953d938db889d8a932d65.tar.gz
test/udev-test.pl: add repeat count
for easier reproduction of sporadic test failures.
-rwxr-xr-xtest/udev-test.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 36028ba617..a19cc9f23d 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -2125,6 +2125,7 @@ EOF
},
{
desc => "multiple devices, same link name, positive prio",
+ repeat => 100,
devices => [
{
devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
@@ -2635,6 +2636,7 @@ sub run_test {
print "TEST $number: $rules->{desc}\n";
create_rules(\$rules->{rules});
+ REPEAT:
fork_and_run_udev("add", $rules, $sema);
foreach my $dev (@devices) {
@@ -2653,6 +2655,9 @@ sub run_test {
}
print "\n";
+ if (defined($rules->{repeat}) && --($rules->{repeat}) > 0) {
+ goto REPEAT;
+ }
if (defined($rules->{option}) && $rules->{option} eq "clean") {
udev_setup();