[asterisk-commits] pabelanger: testsuite/asterisk/trunk r2495 - in /asterisk/trunk: ./ configs/ ...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 29 13:09:40 CDT 2011


Author: pabelanger
Date: Thu Sep 29 13:09:37 2011
New Revision: 2495

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=2495
Log:
Work around Bamboo mime type limitations

In Bamboo it seems you cannot assign an empty extensions as a mime type.
Without it the browser will download the files, rather then displaying them.

To workaround it we'll just use the .txt extension.

Modified:
    asterisk/trunk/configs/branch-1.4/logger.conf
    asterisk/trunk/configs/branch-1.6.2/logger.conf
    asterisk/trunk/configs/logger.conf
    asterisk/trunk/runtests.py

Modified: asterisk/trunk/configs/branch-1.4/logger.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/configs/branch-1.4/logger.conf?view=diff&rev=2495&r1=2494&r2=2495
==============================================================================
--- asterisk/trunk/configs/branch-1.4/logger.conf (original)
+++ asterisk/trunk/configs/branch-1.4/logger.conf Thu Sep 29 13:09:37 2011
@@ -8,6 +8,6 @@
 
 [logfiles]
 console => verbose
-messages => notice,warning,error,verbose
-full => notice,warning,error,debug,verbose,dtmf
+messages.txt => notice,warning,error,verbose
+full.txt => notice,warning,error,debug,verbose,dtmf
 #include "logger.logfiles.conf.inc"

Modified: asterisk/trunk/configs/branch-1.6.2/logger.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/configs/branch-1.6.2/logger.conf?view=diff&rev=2495&r1=2494&r2=2495
==============================================================================
--- asterisk/trunk/configs/branch-1.6.2/logger.conf (original)
+++ asterisk/trunk/configs/branch-1.6.2/logger.conf Thu Sep 29 13:09:37 2011
@@ -8,6 +8,6 @@
 
 [logfiles]
 console => verbose
-messages => notice,warning,error,verbose
-full => notice,warning,error,debug,verbose,dtmf
+messages.txt => notice,warning,error,verbose
+full.txt => notice,warning,error,debug,verbose,dtmf
 #include "logger.logfiles.conf.inc"

Modified: asterisk/trunk/configs/logger.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/configs/logger.conf?view=diff&rev=2495&r1=2494&r2=2495
==============================================================================
--- asterisk/trunk/configs/logger.conf (original)
+++ asterisk/trunk/configs/logger.conf Thu Sep 29 13:09:37 2011
@@ -8,6 +8,6 @@
 
 [logfiles]
 console => verbose
-messages => notice,warning,error,verbose
-full => *
+messages.txt => notice,warning,error,verbose
+full.txt => *
 #include "logger.logfiles.conf.inc"

Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=2495&r1=2494&r2=2495
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Thu Sep 29 13:09:37 2011
@@ -84,15 +84,18 @@
                 if not os.path.exists(dest_dir):
                     try:
                         os.makedirs(dest_dir)
-                        os.link(ast_dir + "/messages", dest_dir + "/messages")
-                        os.link(ast_dir + "/full", dest_dir + "/full")
+                        os.link(ast_dir + "/messages.txt", dest_dir +
+                                "/messages.txt")
+                        os.link(ast_dir + "/full.txt", dest_dir + "/full.txt")
                     except OSError, ose:
                         """ Different partitions can cause this to fail """
                         print "OSError occurred while copying %s ([%d]: %s)" % (ast_dir, ose.errno, ose.strerror)
                         print "Attempting copy"
                         try:
-                            shutil.copy(ast_dir + "/messages", dest_dir + "/messages")
-                            shutil.copy(ast_dir + "/full", dest_dir + "/full")
+                            shutil.copy(ast_dir + "/messages.txt", dest_dir +
+                                    "/messages.txt")
+                            shutil.copy(ast_dir + "/full.txt", dest_dir +
+                                    "/full.txt")
                         except shutil.Error, err:
                             for e in err:
                                 print "Exception occurred while archiving logs from %s to %s: %s" % (e[0], e[1], e[2])




More information about the asterisk-commits mailing list