[Swift-commit] r4933 - SwiftApps/GOSwift/pykoa/tools

jonmon at ci.uchicago.edu jonmon at ci.uchicago.edu
Tue Aug 2 17:02:58 CDT 2011


Author: jonmon
Date: 2011-08-02 17:02:57 -0500 (Tue, 02 Aug 2011)
New Revision: 4933

Modified:
   SwiftApps/GOSwift/pykoa/tools/koa_goswift_run.py
Log:
o added which Swift release was used for execution to the swift.info file.


Modified: SwiftApps/GOSwift/pykoa/tools/koa_goswift_run.py
===================================================================
--- SwiftApps/GOSwift/pykoa/tools/koa_goswift_run.py	2011-08-02 21:35:30 UTC (rev 4932)
+++ SwiftApps/GOSwift/pykoa/tools/koa_goswift_run.py	2011-08-02 22:02:57 UTC (rev 4933)
@@ -241,10 +241,13 @@
 
     # Execute the script
     cmd = ""
+    release = ""
     if options.trunk:
         cmd = os.path.join(os.environ["HOME"], "Swift_lib/trunk", "swift")             # trunk release
+        release = "trunk"
     elif options.stable:
         cmd = os.path.join(os.environ["HOME"], "Swift_lib/0.92", "swift")              # stable 0.92.1 release
+        release = "0.92.1"
 
     os.chdir(work_directory)
     status = -1
@@ -277,9 +280,10 @@
                 pid = p.pid
 
                 with open("swift.info", "w") as swift_info:
-                    swift_info.write("StartTime: "+str(datetime.datetime.utcnow())+"\n")
-                    swift_info.write("Swift pid: "+str(pid)+"\n")
-                    swift_info.write("Run id:    "+str(run_id)+"\n")
+                    swift_info.write("StartTime:     "+str(datetime.datetime.utcnow())+"\n")
+                    swift_info.write("Swift pid:     "+str(pid)+"\n")
+                    swift_info.write("Run id:        "+str(run_id)+"\n")
+                    swift_info.write("Swift release: "+release+"\n")
                     swift_info.write("\n")
                     swift_info.write("Command Line:\n     "+execute+"\n")
 
@@ -320,9 +324,10 @@
         pid = p.pid
 
         with open("swift.info", "w") as swift_info:
-            swift_info.write("StartTime: "+str(datetime.datetime.utcnow())+"\n")
-            swift_info.write("Swift pid: "+str(pid)+"\n")
-            swift_info.write("Run id:    "+str(run_id)+"\n")
+            swift_info.write("StartTime:     "+str(datetime.datetime.utcnow())+"\n")
+            swift_info.write("Swift pid:     "+str(pid)+"\n")
+            swift_info.write("Run id:        "+str(run_id)+"\n")
+            swift_info.write("Swift release: "+release+"\n")
             swift_info.write("\n")
             swift_info.write("Command Line:\n     "+execute+"\n")
 




More information about the Swift-commit mailing list