[Zope-CVS] CVS: Packages/TestScripts - backgroundtester.py:1.4

Jens Vagelpohl jens@zope.com
Fri, 25 Jan 2002 10:19:24 -0500


Update of /cvs-repository/Packages/TestScripts
In directory cvs.zope.org:/tmp/cvs-serv6749

Modified Files:
	backgroundtester.py 
Log Message:
replacing hardcoded OS X with sys.platform



=== Packages/TestScripts/backgroundtester.py 1.3 => 1.4 ===
 
     m_to = RECIPIENTS.split( ',' )
-    m_from = '"OS X Unit Tests" <jens@zope.com>'
-    m_subj = 'OS X Results from %s' % _get_time()
+    m_from = '"%s Unit Tests" <jens@zope.com>' % sys.platform
+    m_subj = '%s Results from %s' % ( sys.platform, _get_time() )
     hdr = 'From: %s\012To: %s\012Subject: %s\012' % ( m_from
                                                     , RECIPIENTS
                                                     , m_subj
@@ -266,7 +266,7 @@
 
 def main():
     """ Run the script """
-    msg = '*** Zope unit tests on Mac OS X (%s) ***\n\n'
+    msg = '*** Zope unit tests on %s (%s) ***\n\n' % sys.platform
     LOG_BUFFER.append( msg %  _get_time() )
     module_path = sys.argv[0]
     module_dir, module_filename = os.path.split( module_path )