[CalendarServer-changes] [11420] CalendarServer/branches/users/glyph/launchd-wrapper-bis/twext/ python/test/test_launchd.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Jun 26 01:16:10 PDT 2013


Revision: 11420
          http://trac.calendarserver.org//changeset/11420
Author:   glyph at apple.com
Date:     2013-06-26 01:16:10 -0700 (Wed, 26 Jun 2013)
Log Message:
-----------
tell the subprocess which test it is

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/launchd-wrapper-bis/twext/python/test/test_launchd.py

Modified: CalendarServer/branches/users/glyph/launchd-wrapper-bis/twext/python/test/test_launchd.py
===================================================================
--- CalendarServer/branches/users/glyph/launchd-wrapper-bis/twext/python/test/test_launchd.py	2013-06-26 08:15:51 UTC (rev 11419)
+++ CalendarServer/branches/users/glyph/launchd-wrapper-bis/twext/python/test/test_launchd.py	2013-06-26 08:16:10 UTC (rev 11420)
@@ -21,14 +21,6 @@
 import sys, os, plistlib
 
 if __name__ == '__main__':
-    import time
-    from pprint import pformat
-    sys.stdout.write("HELLO WORLD\n")
-    sys.stderr.write("ERROR WORLD\n")
-    sys.stdout.write(pformat(dict(os.environ)))
-    sys.stdout.flush()
-    sys.stderr.flush()
-    time.sleep(1)
     import socket
     skt = socket.socket()
     skt.connect(("127.0.0.1", int(os.environ["TESTING_PORT"])))
@@ -211,7 +203,7 @@
         env["TESTING_PORT"] = repr(port.getHost().port)
         plist = {
             "Label": "org.calendarserver.UNIT-TESTS." + repr(os.getpid()),
-            "ProgramArguments": [sys.executable, "-m", __name__],
+            "ProgramArguments": [sys.executable, "-m", __name__, self.id()],
             "EnvironmentVariables": env,
             "KeepAlive": False,
             "StandardOutPath": fp.child("stdout.txt").path,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130626/2009db16/attachment.html>


More information about the calendarserver-changes mailing list