Skip to content

Commit

Permalink
Add unit-test check in relation to vipgoci_run_scan_skip_execution()
Browse files Browse the repository at this point in the history
  • Loading branch information
gudmdharalds committed Feb 1, 2022
1 parent fe4a899 commit cdac6cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,15 @@ function vipgoci_sysexit(
);

/*
* If running SysExitTest.php unit-test, return
* If running certain unit-tests, return
* with exit status.
*/
if (
( function_exists( 'vipgoci_unittests_check_indication_for_test_id' )) &&
( vipgoci_unittests_check_indication_for_test_id( 'SysExitTest' ) )
(
( vipgoci_unittests_check_indication_for_test_id( 'SysExitTest' ) ) ||
( vipgoci_unittests_check_indication_for_test_id( 'RunScanSkipExecutionTest' ) )
)
) {
return $exit_status;
}
Expand Down

0 comments on commit cdac6cc

Please sign in to comment.