diff --git a/helpers/helpers.v2.1.d/utils b/helpers/helpers.v2.1.d/utils index 39dc275de6..4e8a557744 100644 --- a/helpers/helpers.v2.1.d/utils +++ b/helpers/helpers.v2.1.d/utils @@ -314,7 +314,11 @@ ynh_setup_source() { for patchfile in "$patches_folder/"*.patch; do echo "$patchfile" if ! patch --strip=1 < "$patchfile"; then - ynh_print_warn --message="Warn your packagers /!\\ patch $patchfile failed to apply" + if ynh_in_ci_tests; then + ynh_die --message"Patch $patchfile failed to apply!" + else + ynh_print_warn --message="Warn your packagers /!\\ patch $patchfile failed to apply" + fi fi done popd