Copy kernel configs to results
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 3 Sep 2009 09:59:41 +0000 (11:59 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 3 Sep 2009 09:59:41 +0000 (11:59 +0200)
tests/genhtml.py

index cfd3907..9367a1e 100755 (executable)
@@ -30,6 +30,13 @@ class AxisKern(Axis):
         if i>0: kver=v[:i]
         else: kver=v
         return v+"<br><a href='config-%s'>config</a>"%(urllib.quote(kver))
+    def versions(self):
+        for v in self.values:
+            i=v.find(":")
+            if i>0: kver=v[:i]
+            else: kver=v
+            yield kver
+        
     
 
 class AxisClck(Axis):
@@ -149,9 +156,10 @@ try:
     os.remove("index.html")
 except OSError: pass
 
-os.symlink("%s-%s.html"%(kernels.type, kernels[0]), "index.html")
+os.symlink("%s-%s.html"%(clocks.type, clocks[0]), "index.html")
 
 os.system("source-highlight -d --output-dir=. ../*.sh")
     
 
-
+for v in kernels.versions():
+    os.system("cp /boot/config-%s ."%v)