加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0539-test-udev-test.pl-add-repeat-count.patch 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
geliwei 提交于 2021-06-16 16:46 . update to systemd-239-45.el8.src.rpm
From 6fba8e9a94026ee7b8791844ed1e7c6d464f7666 Mon Sep 17 00:00:00 2001
From: Martin Wilck <mwilck@suse.com>
Date: Tue, 24 Apr 2018 22:24:43 +0200
Subject: [PATCH] test/udev-test.pl: add repeat count
for easier reproduction of sporadic test failures.
(cherry picked from commit 2ab0a8d00bc48d3531e953d938db889d8a932d65)
Related: #1642728
---
test/udev-test.pl | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test/udev-test.pl b/test/udev-test.pl
index d964c664b6..8b1ab3c06c 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();
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化