Skip to content

Commit 0d60240

Browse files
authored
Merge pull request #23038 from rbmarliere/187320
Kselftests: A couple of small fixes
2 parents 0679fdd + fc023af commit 0d60240

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/kernel/run_kselftests.pm

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ sub install_from_git
4646
sub install_from_repo
4747
{
4848
my $repo = get_var('KSELFTEST_REPO', '');
49-
zypper_call("ar -f $repo kselftests");
49+
zypper_call("ar -p 1 -f $repo kselftests");
5050
zypper_call("--gpg-auto-import-keys ref");
5151
zypper_call("install -y kselftests");
5252
}
@@ -171,8 +171,11 @@ sub run {
171171
$tests .= "--test $_ " for @tests;
172172
}
173173

174-
my $timeout = get_var('KSELFTEST_TIMEOUT', 45); # Individual timeout for each test in the collection
175-
assert_script_run("./run_kselftest.sh --per-test-log --override-timeout $timeout $tests > summary.tap", 7200);
174+
my $timeout;
175+
if ($timeout = get_var('KSELFTEST_TIMEOUT')) {
176+
$timeout = "--override-timeout $timeout"; # Individual timeout for each test in the collection
177+
}
178+
assert_script_run("./run_kselftest.sh --per-test-log $timeout $tests > summary.tap", 7200);
176179
$self->post_process($collection, @tests);
177180
}
178181

0 commit comments

Comments
 (0)