File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1900,10 +1900,9 @@ push_e2e_tests_report_to_git_repo() {
1900
1900
1901
1901
# Try add link to 'latest' section
1902
1902
local LATEST_REPORT
1903
- LATEST_REPORT=$( realpath --relative-to=" $WORK_DIR " " $REPORT_FILE " )
1903
+ LATEST_REPORT=" $( realpath --relative-to=" $WORK_DIR " " $REPORT_DIR " ) / $( basename " $ REPORT_FILE" ) "
1904
1904
1905
- # It's ok if this fails
1906
- sed -i ' s/^[' " $APP " ' e2e](.*)$/[' " $APP " ' e2e](' " $LATEST_REPORT " ' )/' " $WORK_DIR /README.md" || true
1905
+ sed -i ' s#^\[' " $APP " ' e2e\](.*)$#\[' " $APP " ' e2e\](' " ${LATEST_REPORT// ./ \\ .} " ' )#' " $WORK_DIR /README.md"
1907
1906
1908
1907
cd " $WORK_DIR "
1909
1908
git add --all
@@ -1931,7 +1930,7 @@ run_and_publish_e2e_tests_to_git_repo() {
1931
1930
local REPOSITORY_URL=" $5 "
1932
1931
local REPORTS_BASE=" $6 "
1933
1932
1934
- run_e2e_tests " $ROOT_DIR " " $APP " || true
1933
+ run_e2e_tests " $ROOT_DIR " " $APP "
1935
1934
1936
1935
local MD_FLAVOR
1937
1936
[[ " $REPOSITORY_URL " = * gitlab* ]] && MD_FLAVOR=" gitlab"
You can’t perform that action at this time.
0 commit comments