File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ sub install_from_git
46
46
sub install_from_repo
47
47
{
48
48
my $repo = get_var(' KSELFTEST_REPO' , ' ' );
49
- zypper_call(" ar -f $repo kselftests" );
49
+ zypper_call(" ar -p 1 - f $repo kselftests" );
50
50
zypper_call(" --gpg-auto-import-keys ref" );
51
51
zypper_call(" install -y kselftests" );
52
52
}
@@ -171,8 +171,11 @@ sub run {
171
171
$tests .= " --test $_ " for @tests ;
172
172
}
173
173
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);
176
179
$self -> post_process($collection , @tests );
177
180
}
178
181
You can’t perform that action at this time.
0 commit comments