Modified update_brag_status to automatically add link to manual Smoketest report
authorMaciej Seroka <maciejs@symbian.org>
Tue, 29 Jun 2010 14:43:07 +0100
changeset 1118 abbcac685ab1
parent 1117 0006ed4e0b6d
child 1119 9d4b5a298764
child 1125 347520d321d4
Modified update_brag_status to automatically add link to manual Smoketest report
common/tools/ats/update_brag_status.pl
--- a/common/tools/ats/update_brag_status.pl	Fri Jun 25 14:54:42 2010 +0100
+++ b/common/tools/ats/update_brag_status.pl	Tue Jun 29 14:43:07 2010 +0100
@@ -41,6 +41,7 @@
 my $n;
 my $m;
 my @lines;
+my $man_detailshref;
 
 sub usage($);
 sub help();
@@ -143,6 +144,11 @@
 if (defined($ats4_report)) { $detailshref = $ats4_report };
 $detailshref =~ s/\\/\//g; # Replace \ with /
 $detailshref =~ s/($temp_path)/../;
+if (defined($test_report)) {
+	$man_detailshref = $test_report;
+	$man_detailshref =~ s/\\/\//g; # Replace \ with /
+	$man_detailshref =~ s/($temp_path)/../;
+}
 
 if (defined($test_report)) { # Get manual Smoketest results.
 	print "Parsing " . $test_report . "... ";
@@ -205,7 +211,7 @@
 splice @lines, $n, 0, "<nestedtests count=\"$auto_tests_notrun\" property=\"not run\"/>"; $n++;
 splice @lines, $n, 0, "<\/step>"; $n++;
 if (defined($test_report)) {
-	splice @lines, $n, 0, "<step name=\"Smoketest - manual tests\">"; $n++;
+	splice @lines, $n, 0, "<step detailshref=\"$man_detailshref\" name=\"Smoketest - manual tests\">"; $n++;
 	splice @lines, $n, 0, "<nestedtests count=\"$man_tests_total\" property=\"total\"/>"; $n++;
 	splice @lines, $n, 0, "<nestedtests count=\"$man_tests_passed\" property=\"passed\"/>"; $n++;
 	splice @lines, $n, 0, "<nestedtests count=\"$man_tests_failed\" property=\"failed\"/>"; $n++;
@@ -235,7 +241,7 @@
 print FILE "<nestedtests count=\"$auto_tests_notrun\" property=\"not run\"/>\n";
 print FILE "<\/step>\n";
 if (defined($test_report)) {
-	print FILE "<step name=\"Smoketest - manual tests\">\n";
+	print FILE "<step detailshref=\"$man_detailshref\" name=\"Smoketest - manual tests\">\n";
 	print FILE "<nestedtests count=\"$man_tests_total\" property=\"total\"/>\n";
 	print FILE "<nestedtests count=\"$man_tests_passed\" property=\"passed\"/>\n";
 	print FILE "<nestedtests count=\"$man_tests_failed\" property=\"failed\"/>\n";