mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Always activate time when running inside CI tests
This way, no need to specify the --time argument of ynh_script_progression if you’re testing your app package through Yunorunner and want to adjust weight.
This commit is contained in:
parent
680811eeff
commit
0f307d1fa7
1 changed files with 8 additions and 1 deletions
|
@ -248,7 +248,14 @@ ynh_script_progression() {
|
|||
# Re-disable xtrace, ynh_handle_getopts_args set it back
|
||||
set +o xtrace # set +x
|
||||
weight=${weight:-1}
|
||||
|
||||
# Always activate time when running inside CI tests
|
||||
if [$PACKAGE_CHECK_EXEC -eq 1]; then
|
||||
time=${time:-1}
|
||||
else
|
||||
time=${time:-0}
|
||||
fi
|
||||
|
||||
last=${last:-0}
|
||||
|
||||
# Get execution time since the last $base_time
|
||||
|
|
Loading…
Add table
Reference in a new issue