mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Publish logs with YunoPaste on failure
This commit is contained in:
parent
bea9c77046
commit
b23959a61a
1 changed files with 3 additions and 0 deletions
|
@ -136,6 +136,9 @@ TEST_LAUNCHER () {
|
||||||
|
|
||||||
[ $test_result -eq 0 ] && SET_RESULT "success" main_result || SET_RESULT "failure" main_result
|
[ $test_result -eq 0 ] && SET_RESULT "success" main_result || SET_RESULT "failure" main_result
|
||||||
|
|
||||||
|
# Publish logs with YunoPaste on failure
|
||||||
|
[ ! $test_result -eq 0 ] && RUN_INSIDE_LXC yunohost tools shell -c "from yunohost.log import log_list, log_share; log_share(log_list().get('operation')[-1].get('path'))"
|
||||||
|
|
||||||
# Check that we don't have this message characteristic of a file that got manually modified,
|
# Check that we don't have this message characteristic of a file that got manually modified,
|
||||||
# which should not happen during tests because no human modified the file ...
|
# which should not happen during tests because no human modified the file ...
|
||||||
if grep -q --extended-regexp 'has been manually modified since the installation or last upgrade. So it has been duplicated' $current_test_log
|
if grep -q --extended-regexp 'has been manually modified since the installation or last upgrade. So it has been duplicated' $current_test_log
|
||||||
|
|
Loading…
Add table
Reference in a new issue