Skip to content

Commit

Permalink
Merge pull request #21 from jkuradobery/fix-disk-manager-acceptance-t…
Browse files Browse the repository at this point in the history
…ests-scripts-naming

[Disk Manager]: Fix eternal and sync tests reporting
  • Loading branch information
jkuradobery authored Jan 2, 2024
2 parents e5b152f + b6c17af commit fb576b1
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ export dm="${d}/disk_manager_acceptance_test/disk_manager_acceptance_tests"
export cluster="nemax"

export results_dir="/var/www/build/results"
export result_case_directory="${results_dir}/disk_manager_${test_name:=acceptance}/${cluster}/disk-manager/"
results_path="${result_case_directory}${test_suite:?"test_suite parameter undefined"}/$(date +%Y-%m-%d)"
export results_path

function create_results_directory () {
rm -rf "$results_path"
Expand Down Expand Up @@ -41,6 +38,9 @@ function report_results () {
}

function execute_tests () {
export result_case_directory="${results_dir}/disk_manager_${test_name:=acceptance}/${cluster}/disk-manager/"
results_path="${result_case_directory}${test_suite:?"test_suite parameter undefined"}/$(date +%Y-%m-%d)"
export results_path
create_results_directory
# shellcheck disable=SC2068
# shellcheck disable=SC2046
Expand Down
4 changes: 3 additions & 1 deletion cloud/storage/core/tools/ci/runner/generate_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def generate_nfs_section(index, results_xml_path):


def generate_dm_section(index, results_xml_path):
for tests_type in ["disk_manager_acceptance"]:
for tests_type in [
"disk_manager_acceptance", "disk_manager_eternal", "disk_manager_sync"
]:
generate_generic_tests_section(index, tests_type, results_xml_path)


Expand Down
26 changes: 26 additions & 0 deletions cloud/storage/core/tools/ci/runner/index.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,17 @@
</xsl:call-template>
</xsl:template>

<xsl:template match="disk_manager_eternal" mode="detailed">
<xsl:call-template name="detailed">
<xsl:with-param name="suite-kind">disk_manager_eternal</xsl:with-param>
</xsl:call-template>
</xsl:template>

<xsl:template match="disk_manager_sync" mode="detailed">
<xsl:call-template name="detailed">
<xsl:with-param name="suite-kind">disk_manager_sync</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- boilerplate wrappers for brief suite reports -->

<xsl:template match="fio" mode="brief">
Expand Down Expand Up @@ -214,6 +225,17 @@
</xsl:call-template>
</xsl:template>

<xsl:template match="disk_manager_eternal" mode="brief">
<xsl:call-template name="brief">
<xsl:with-param name="suite-kind">disk_manager_eternal</xsl:with-param>
</xsl:call-template>
</xsl:template>

<xsl:template match="disk_manager_sync" mode="brief">
<xsl:call-template name="brief">
<xsl:with-param name="suite-kind">disk_manager_sync</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- main template -->

<xsl:template match="index">
Expand Down Expand Up @@ -242,6 +264,8 @@
<div style="border: 1px solid black; margin-bottom: 20px; padding: 10px">
<h3>DM</h3>
<xsl:apply-templates select="disk_manager_acceptance" mode="brief"/>
<xsl:apply-templates select="disk_manager_eternal" mode="brief"/>
<xsl:apply-templates select="disk_manager_sync" mode="brief"/>
</div>
</div>
<div style="border-top: 1px dashed black; margin-bottom: 20px">
Expand All @@ -262,6 +286,8 @@
<div style="border: 1px solid black; margin-bottom: 20px; padding: 10px">
<h3>DM</h3>
<xsl:apply-templates select="disk_manager_acceptance" mode="detailed"/>
<xsl:apply-templates select="disk_manager_eternal" mode="detailed"/>
<xsl:apply-templates select="disk_manager_sync" mode="detailed"/>
</div>
</div>
</body>
Expand Down

0 comments on commit fb576b1

Please sign in to comment.