Autotest中 kvm class和test class的关系

diff --git a/client/job.py b/client/job.py
index 42f5688..e09f8c6 100644
--- a/client/job.py
+++ b/client/job.py
@@ -528,6 +528,7 @@ class base_client_job(base_job.base_job):
         try:
             l = lambda : test.runtest(self, url, tag, args, dargs)
             pid = parallel.fork_start(self.resultdir, l)
+            print "_runtest"
 
             if timeout:
                 logging.debug('Waiting for pid %d for %d seconds', pid, timeout)
diff --git a/client/parallel.py b/client/parallel.py
index 24f3069..595120b 100644
--- a/client/parallel.py
+++ b/client/parallel.py
@@ -6,6 +6,7 @@ import sys, logging, os, pickle, traceback, gc, time
 from autotest.client.shared import error, utils
 
 def fork_start(tmp, l):
+    print "fork_start"
     sys.stdout.flush()
     sys.stderr.flush()
     pid = os.fork()
diff --git a/client/test.py b/client/test.py
index a3ffa22..29a26da 100644
--- a/client/test.py
+++ b/client/test.py
@@ -29,6 +29,10 @@ from autotest.client import os_dep
 class test(common_test.base_test):
     # Segmentation fault handling is something that is desirable only for
     # client side tests.
+    def __init__(self, job, bindir, outputdir):
+        common_test.base_test.__init__(self, job, bindir, outputdir)
+        print " ---test class"
+
     def configure_crash_handler(self):
         """
         Configure the crash handler by:
diff --git a/client/tests/kvm/kvm.py b/client/tests/kvm/kvm.py
index 117d84d..516e3f0 100644
--- a/client/tests/kvm/kvm.py
+++ b/client/tests/kvm/kvm.py
@@ -17,4 +17,8 @@ class kvm(virt_test.virt_test):
     @see: http://www.linux-kvm.org/page/KVM-Autotest/Client_Install
             (Online doc - Getting started with KVM testing)
     """
+    def __init__(self, job, bindir, outputdir):
+        virt_test.virt_test.__init__(self, job, bindir, outputdir)
+        print " ---kvm class"
+
     pass
diff --git a/client/virt/virt_test.py b/client/virt/virt_test.py
index 9870935..33ed857 100644
--- a/client/virt/virt_test.py
+++ b/client/virt/virt_test.py
@@ -14,6 +14,9 @@ class virt_test(test.test):
     version = 1
     env_version = 1
 
+    def __init__(self, job, bindir, outputdir):
+        test.test.__init__(self, job, bindir, outputdir)
+        print " ---virt_test class"
 
     def initialize(self, params):
         # Change the value of the preserve_srcdir attribute according to

你可能感兴趣的:(Autotest中 kvm class和test class的关系)