[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. debian/0.9.5.9+git20110512-1-44-g2b0bd1a

Felix Huber felix.huber at schyf.de
Tue May 15 11:58:55 UTC 2012


The following commit has been merged in the debian branch:
commit 7865797d787965d22a8d469d155e5a6899ef854a
Author: Felix Huber <felix.huber at schyf.de>
Date:   Tue Sep 6 21:33:59 2011 +0200

    testing: improve start time

diff --git a/framework/subsystems/testing/testing.py b/framework/subsystems/testing/testing.py
index 3a368c6..c7aef23 100644
--- a/framework/subsystems/testing/testing.py
+++ b/framework/subsystems/testing/testing.py
@@ -33,6 +33,7 @@ class Resource( resource.Resource ):
     def __init__( self, bus ):
         self.path = DBUS_OBJECT_PATH
         self.bus = bus
+        self.virgin = True
         dbus.service.Object.__init__( self, bus, self.path )
         resource.Resource.__init__( self, bus, "TEST" )
         logger.info("%s %s at %s initialized.", self.__class__.__name__, __version__, self.path )
@@ -53,7 +54,10 @@ class Resource( resource.Resource ):
 
     def _disable( self, on_ok, on_error ):
         logger.info( "disabling" )
-        time.sleep( 5.0 )
+        if self.virgin == True:
+            self.virgin = False
+        else:
+            time.sleep( 5.0 )
         self._doit( "disabling", on_ok, on_error )
 
     def _suspend( self, on_ok, on_error ):

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list