@@ -111,7 +111,12 @@ function assertMagentoReinstallWorks()
111
111
cd " ${vagrant_dir} "
112
112
bash m-reinstall >> ${current_log_file_path} 2>&1
113
113
pattern=" Access storefront at .*(http\://magento2\.vagrant[0-9/:\.]+).*"
114
- output_log=" $( tail -n5 ${current_log_file_path} ) "
114
+ if [[ ${debug_vagrant_project} -eq 1 ]]; then
115
+ tail_number=300
116
+ else
117
+ tail_number=5
118
+ fi
119
+ output_log=" $( tail -n${tail_number} ${current_log_file_path} ) "
115
120
assertTrue ' Magento reinstallation failed (Frontend URL is not available in the output)' ' [[ ${output_log} =~ ${pattern} ]]'
116
121
}
117
122
@@ -144,7 +149,12 @@ function assertMagentoCliWorks()
144
149
cd " ${vagrant_dir} "
145
150
bash m-bin-magento list >> ${current_log_file_path} 2>&1
146
151
pattern=" theme:uninstall"
147
- output_log=" $( tail -n2 ${current_log_file_path} ) "
152
+ if [[ ${debug_vagrant_project} -eq 1 ]]; then
153
+ tail_number=55
154
+ else
155
+ tail_number=2
156
+ fi
157
+ output_log=" $( tail -n${tail_number} ${current_log_file_path} ) "
148
158
assertTrue " ${red} Magento CLI does not work.${regular} " ' [[ ${output_log} =~ ${pattern} ]]'
149
159
}
150
160
@@ -227,7 +237,7 @@ function assertNoErrorsInLogs()
227
237
assertTrue " Errors found in log file:
228
238
${grep_cannot} " ' [[ ${count_cannot} -eq 0 ]]'
229
239
230
- grep_error=" $( cat " ${current_log_file_path} " | grep -i " error" | grep -iv " errors = Off|display" | grep -iv " error_reporting = E_ALL" | grep -iv " assertNoErrorsInLogs" | grep -iv " shared folder errors" ) "
240
+ grep_error=" $( cat " ${current_log_file_path} " | grep -i " error" | grep -iv " errors = Off|display" | grep -iv " error_reporting = E_ALL" | grep -iv " assertNoErrorsInLogs" | grep -iv " shared folder errors" | grep -iv " \+\+ logError " | grep -iv " \+\+ outputErrorsOnly " | grep -iv " \+\+ errors= " | grep -iv " \+\+ which bash " ) "
231
241
count_error=" $( echo ${grep_error} | grep -ic " error" ) "
232
242
assertTrue " Errors found in log file:
233
243
${grep_error} " ' [[ ${count_error} -eq 0 ]]'
0 commit comments