File tree 3 files changed +10
-14
lines changed
3 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ function rewrite_log_links_to_s3
72
72
local CT_REPORT=big_tests/ct_report
73
73
local CT_REPORT_ABS=$( ./tools/abs_dirpath.sh " $CT_REPORT " )
74
74
local CT_REPORTS=$( ct_reports_dir)
75
- local BIG_TESTS_URL=" $( zip_reader_big_url ${CT_REPORTS} ) "
75
+ local BIG_TESTS_URL=" $( archive_reader_url big ${CT_REPORTS} ) "
76
76
cp /tmp/ct_markdown /tmp/ct_markdown_original
77
77
replace_string " $CT_REPORT_ABS " " $BIG_TESTS_URL " /tmp/ct_markdown
78
78
# URL escape for s3_reports.html script
@@ -97,15 +97,15 @@ function small_suite_path
97
97
function ct_run_url
98
98
{
99
99
local CT_REPORTS=$( ct_reports_dir)
100
- local BIG_TESTS_URL=" $( zip_reader_big_url ${CT_REPORTS} ) "
100
+ local BIG_TESTS_URL=" $( archive_reader_url big ${CT_REPORTS} ) "
101
101
local RUN_PART=$( echo " $( last_ct_run_name) " | sed " s/@/%40/g" )
102
102
echo " $BIG_TESTS_URL /$RUN_PART /index.html"
103
103
}
104
104
105
105
function ct_small_url
106
106
{
107
107
local CT_REPORTS=$( ct_reports_dir)
108
- local SMALL_TESTS_URL=" $( zip_reader_small_url ${CT_REPORTS} ) "
108
+ local SMALL_TESTS_URL=" $( archive_reader_url small ${CT_REPORTS} ) "
109
109
local SUFFIX=$( small_suite_path)
110
110
echo " $SMALL_TESTS_URL /$SUFFIX "
111
111
}
Original file line number Diff line number Diff line change @@ -59,12 +59,8 @@ direct_s3_url() {
59
59
echo " https://circleci-mim-results.s3.eu-central-1.amazonaws.com/${CT_REPORTS} "
60
60
}
61
61
62
- zip_reader_big_url () {
63
- local CT_REPORTS=${1:- }
64
- echo " https://esl.github.io/html-zip-reader/${CT_REPORTS} /big.tar.gz/"
65
- }
66
-
67
- zip_reader_small_url () {
68
- local CT_REPORTS=${1:- }
69
- echo " https://esl.github.io/html-zip-reader/${CT_REPORTS} /small.tar.gz/"
62
+ archive_reader_url () {
63
+ local TEST_TYPE=$1
64
+ local CT_REPORTS=${2:- }
65
+ echo " https://esl.github.io/html-zip-reader/${CT_REPORTS} /${TEST_TYPE} .tar.gz/"
70
66
}
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ function rewrite_log_links_to_s3
70
70
local CT_REPORT=big_tests/ct_report
71
71
local CT_REPORT_ABS=$( ./tools/abs_dirpath.sh " $CT_REPORT " )
72
72
local CT_REPORTS=$( ct_reports_dir)
73
- local BIG_TESTS_URL=" $( zip_reader_big_url ${CT_REPORTS} ) "
73
+ local BIG_TESTS_URL=" $( archive_reader_url big ${CT_REPORTS} ) "
74
74
cp /tmp/ct_markdown /tmp/ct_markdown_original
75
75
replace_string " $CT_REPORT_ABS " " $BIG_TESTS_URL " /tmp/ct_markdown
76
76
# URL escape for s3_reports.html script
@@ -95,15 +95,15 @@ function small_suite_path
95
95
function ct_run_url
96
96
{
97
97
local CT_REPORTS=$( ct_reports_dir)
98
- local BIG_TESTS_URL=" $( zip_reader_big_url ${CT_REPORTS} ) "
98
+ local BIG_TESTS_URL=" $( archive_reader_url big ${CT_REPORTS} ) "
99
99
local RUN_PART=$( echo " $( last_ct_run_name) " | sed " s/@/%40/g" )
100
100
echo " $BIG_TESTS_URL /$RUN_PART /index.html"
101
101
}
102
102
103
103
function ct_small_url
104
104
{
105
105
local CT_REPORTS=$( ct_reports_dir)
106
- local SMALL_TESTS_URL=" $( zip_reader_small_url ${CT_REPORTS} ) "
106
+ local SMALL_TESTS_URL=" $( archive_reader_url small ${CT_REPORTS} ) "
107
107
local SUFFIX=$( small_suite_path)
108
108
echo " $SMALL_TESTS_URL /$SUFFIX "
109
109
}
You can’t perform that action at this time.
0 commit comments