diff options
author | Ziwei Zhang <zhangxh@google.com> | 2024-04-22 16:43:53 +0800 |
---|---|---|
committer | Ziwei Zhang <zhangxh@google.com> | 2024-04-22 16:43:53 +0800 |
commit | 001b99fa50451b31200d8bc524973e32d440aafa (patch) | |
tree | 45160fb14f7316db9d1773ec3cf2b314bd0f67cd | |
parent | 4f699b7a7ac5c5cc168dad5ca39eb42ca6aa3c70 (diff) | |
download | suite_harness-001b99fa50451b31200d8bc524973e32d440aafa.tar.gz |
To make the file names UTF-8 encoding.
Bug: 334738937
Test: local with xsltproc
Change-Id: Ib79d99c17764b933d6b19ab6f787444a34288ab9
-rw-r--r-- | common/host-side/tradefed/res/report/compatibility_result.xsl | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/common/host-side/tradefed/res/report/compatibility_result.xsl b/common/host-side/tradefed/res/report/compatibility_result.xsl index 7233c977..21fbbdec 100644 --- a/common/host-side/tradefed/res/report/compatibility_result.xsl +++ b/common/host-side/tradefed/res/report/compatibility_result.xsl @@ -141,19 +141,23 @@ <xsl:for-each select="Result/Module"> <tr> <td> - <xsl:variable name="href"> + <xsl:variable name="moduleName"> <xsl:value-of select="@abi"/> <xsl:value-of select="@name"/> </xsl:variable> <xsl:choose> <xsl:when test="count(TestCase/Test) > 0"> + <xsl:variable name="href"> + <xsl:value-of select="@abi"/>_<xsl:value-of + select="@name"/> + </xsl:variable> <a href="module_reports/{$href}.html"> - <xsl:value-of select="$href"/> + <xsl:value-of select="$moduleName"/> </a> </xsl:when> <xsl:otherwise> <a> - <xsl:value-of select="$href"/> + <xsl:value-of select="$moduleName"/> </a> </xsl:otherwise> </xsl:choose> @@ -236,7 +240,7 @@ <xsl:template name="detailedTestReportPage"> <xsl:variable name="href"> - <xsl:value-of select="@abi"/> <xsl:value-of select="@name"/> + <xsl:value-of select="@abi"/>_<xsl:value-of select="@name"/> </xsl:variable> <redirect:write file="{$reportDir}/module_reports/{$href}.html"> <html> @@ -276,11 +280,11 @@ <xsl:template name="moduleTableHeader"> <tr> <td class="module" colspan="3"> - <xsl:variable name="href"> + <xsl:variable name="moduleName"> <xsl:value-of select="@abi"/> <xsl:value-of select="@name"/> </xsl:variable> - <a name="{$href}"> - <xsl:value-of select="$href"/> + <a name="{$moduleName}"> + <xsl:value-of select="$moduleName"/> </a> </td> </tr> |