]> xenbits.xensource.com Git - people/larsk/xen-release-scripts.git/commitdiff
Make available links to DEBUG logs in html output
authorLars Kurth <lars.kurth@citrix.com>
Fri, 7 Jul 2017 20:34:34 +0000 (21:34 +0100)
committerLars Kurth <lars.kurth@citrix.com>
Fri, 7 Jul 2017 20:34:34 +0000 (21:34 +0100)
match-xsa

index 22240f34d5f757e697e28f4f8284d291f127eefc..1d6de4c717490e5aec2ba58a7b82df9ba1371ffb 100755 (executable)
--- a/match-xsa
+++ b/match-xsa
@@ -119,9 +119,14 @@ print "CHECKING '$XSAFILE' against 'xen_$short.log', 'qemuu_$short.log' and 'qem
 print "\n";
 for ($i=0; $i <= $XSAs; $i++) {
    my $j=0;
+   my $i_correct = $i+1;
    my $xen=0;
    my $qemuu=0;
    my $qemut=0;
+
+   if ($DEBUG != 0) { 
+      mkdir $debug."/".$XSA[$i]."[".$i_correct."]";
+   }
    
    if ($SMART == 0)
    {
@@ -156,6 +161,9 @@ if ($HTML) {
    printf("\n");
    my $LAST_XSA = $XSA[0];
    for ($i=0; $i <= $XSAs; $i++) {
+   
+       my $i_correct = $i+1;
+       
        if ($LAST_XSA != $XSA[$i]) {
            printf('<hr>');
            printf("\n"); 
@@ -170,6 +178,10 @@ if ($HTML) {
        } else {
           printf('<em>%s</em> ', $XSA_ID[$i]);       
        }
+       if ($DEBUG != 0) { 
+          printf(' ... <a href="File://%s">DEBUG</a> ', $debug."/".$XSA[$i]."[".$i_correct."]");
+          mkdir $;
+       }       
        printf('</li>');
        printf("\n");
    }
@@ -284,7 +296,7 @@ sub matchsmart {
    
    # DEBUG FILE
    my $i_correct = $i +1;
-   my $debugbase = $debug."/".$XSA[$i]."[".$i_correct."]-".$type;
+   my $debugbase = $debug."/".$XSA[$i]."[".$i_correct."]/".$type;
    my $debuglog = $debugbase."---log.txt";
    my $debugstring = "";