mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Prevent displaying -- FAIL -- when setting the test duration
This commit is contained in:
parent
37317c080c
commit
cc5d5521e2
1 changed files with 4 additions and 1 deletions
|
@ -341,7 +341,10 @@ TEST_LAUNCHER () {
|
|||
SET_RESULT() {
|
||||
local result=$1
|
||||
local name=$2
|
||||
if [ "$name" != "test_duration" ]
|
||||
then
|
||||
[ "$result" == "success" ] && log_report_test_success || log_report_test_failed
|
||||
fi
|
||||
local current_results="$(cat $current_test_results)"
|
||||
echo "$current_results" | jq --arg result $result ".$name=\$result" > $current_test_results
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue