[asterisk-commits] mnicholson: testsuite/asterisk/trunk r1718 - /asterisk/trunk/runtests.py

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 11 08:42:31 CDT 2011


Author: mnicholson
Date: Mon Jul 11 08:42:28 2011
New Revision: 1718

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1718
Log:
properly locate tests specified with a trailing '/' when using the -t option to
runtests.py

Modified:
    asterisk/trunk/runtests.py

Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=1718&r1=1717&r2=1718
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Mon Jul 11 08:42:28 2011
@@ -315,6 +315,10 @@
     def run(self):
         test_suite_dir = os.getcwd()
 
+	# remove any trailing '/' from a test specified with the -t option
+	if self.options.test and self.options.test[-1] == '/':
+            self.options.test = self.options.test[0:-1]
+
         for t in self.tests:
             if self.options.test and t.test_name != self.options.test:
                 continue




More information about the asterisk-commits mailing list