[asterisk-commits] pabelanger: testsuite/asterisk/trunk r1917 - /asterisk/trunk/lib/python/aster...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 25 13:07:29 CDT 2011


Author: pabelanger
Date: Thu Aug 25 13:07:26 2011
New Revision: 1917

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1917
Log:
Because some test still pass the workingdir, strip it

Modified:
    asterisk/trunk/lib/python/asterisk/asterisk.py

Modified: asterisk/trunk/lib/python/asterisk/asterisk.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/asterisk.py?view=diff&rev=1917&r1=1916&r2=1917
==============================================================================
--- asterisk/trunk/lib/python/asterisk/asterisk.py (original)
+++ asterisk/trunk/lib/python/asterisk/asterisk.py Thu Aug 25 13:07:26 2011
@@ -82,6 +82,11 @@
             return
 
         if base is not None:
+            # If the test is passing the default value of base...
+            if base.startswith(self.base):
+                # ...strip it.
+                base = base[len(self.base):]
+
             self.base = "%s/%s" % (self.base, base)
         i = 1
         while True:




More information about the asterisk-commits mailing list