mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Report (as info) ynh_script_progression during backup
This commit is contained in:
parent
ee3d38c177
commit
8447af9142
1 changed files with 12 additions and 0 deletions
|
@ -1413,6 +1413,18 @@ class Script(TestSuite):
|
||||||
"during the installation. (and ideally in scripts remove, upgrade and restore too)"
|
"during the installation. (and ideally in scripts remove, upgrade and restore too)"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@test(only=["backup"])
|
||||||
|
def progression_in_backup(self):
|
||||||
|
if self.contains("ynh_script_progression"):
|
||||||
|
yield Info(
|
||||||
|
"We recommend to *not* use 'ynh_script_progression' in backup "
|
||||||
|
"scripts because no actual work happens when running the script "
|
||||||
|
" : yunohost only fetches the list of things to backup (apart "
|
||||||
|
"from the DB dumps which effectively happens during the script..). "
|
||||||
|
"Consider using a simple message like this instead: 'ynh_print_info \"Declaring files to be backed up...\"'"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def progression_time(self):
|
def progression_time(self):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue