[CalendarServer-changes] [4517] CalDAVTester/trunk/run.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 31 12:31:48 PDT 2009


Revision: 4517
          http://trac.macosforge.org/projects/calendarserver/changeset/4517
Author:   cdaboo at apple.com
Date:     2009-08-31 12:31:45 -0700 (Mon, 31 Aug 2009)
Log Message:
-----------
Proper exit code.

Modified Paths:
--------------
    CalDAVTester/trunk/run.py

Modified: CalDAVTester/trunk/run.py
===================================================================
--- CalDAVTester/trunk/run.py	2009-08-31 18:57:22 UTC (rev 4516)
+++ CalDAVTester/trunk/run.py	2009-08-31 19:31:45 UTC (rev 4517)
@@ -77,7 +77,7 @@
 
 def runit():
     pythonpath= ":".join(add_paths)
-    subprocess.Popen(["./testcaldav.py", "--all"], env={"PYTHONPATH":pythonpath}).wait()
+    return subprocess.Popen(["./testcaldav.py", "--all"], env={"PYTHONPATH":pythonpath}).wait()
 
 if __name__ == "__main__":
 
@@ -114,7 +114,9 @@
         else:
             pythonpath()
         if (do_run):
-            runit()
+            sys.exit(runit())
+        else:
+            sys.exit(0)
     except SystemExit, e:
         pass
     except Exception, e:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090831/5f222a9c/attachment.html>


More information about the calendarserver-changes mailing list