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
4646sub 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
You can’t perform that action at this time.
0 commit comments