9 my $MOD_NAME = $ARGV[0];
10 my $results_xml = "tct-$MOD_NAME-core-tests.xml";
11 my $results_out = "results_xml.$$";
13 # Copy $results_xml, writing new stylesheet line:
14 # Write <?xml-stylesheet type="text/xsl" href="./style/testresult.xsl"?> as second line
15 open RESULTS, "<$results_xml" || die "Can't open $results_xml for reading:$!\n";
16 open RESULTS_OUT, ">$results_out" || die "Can't open $results_out for writing:$!\n";
17 my $fline = readline RESULTS;
18 print RESULTS_OUT $fline;
19 print RESULTS_OUT "<?xml-stylesheet type=\"text/xsl\" href=\"./style/testresult.xsl\"?>\n";
22 if( ! /xml-stylesheet/ )
30 print `mv $results_out $results_xml`;