mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Uhoh tests were not failing anymore
This commit is contained in:
parent
465f490653
commit
280c3261d6
1 changed files with 2 additions and 2 deletions
|
@ -323,6 +323,8 @@ TEST_LAUNCHER () {
|
|||
# Execute the test
|
||||
$test_type $test_arg
|
||||
|
||||
[ $? -eq 0 ] && SET_RESULT "success" main_result || SET_RESULT "failure" main_result
|
||||
|
||||
# Check that the number of warning ain't higher than a treshold
|
||||
local n_warnings=$(grep --extended-regexp '^[0-9]+\s+.{1,15}WARNING' $current_test_log | wc -l)
|
||||
# (we ignore this test for upgrade from older commits to avoid having to patch older commits for this)
|
||||
|
@ -333,8 +335,6 @@ TEST_LAUNCHER () {
|
|||
SET_RESULT "failure" too_many_warnings
|
||||
fi
|
||||
|
||||
[ $? -eq 0 ] && SET_RESULT "success" main_result || SET_RESULT "failure" main_result
|
||||
|
||||
local test_duration=$(echo $(( $(date +%s) - $global_start_timer )))
|
||||
SET_RESULT "$test_duration" test_duration
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue