Fixes for machine id handling an JSON output.
authorJan Vrany <jan.vrany@fit.cvut.cz>
Sun, 14 Jul 2013 00:42:26 +0100
changeset 125 1449209198c1
parent 124 e5582f62aab5
child 126 6b0b89d24425
Fixes for machine id handling an JSON output.
s/BenchmarkReportJSON.st
s/BenchmarkRunner.st
--- a/s/BenchmarkReportJSON.st	Sun Jul 14 00:16:41 2013 +0100
+++ b/s/BenchmarkReportJSON.st	Sun Jul 14 00:42:26 2013 +0100
@@ -53,7 +53,7 @@
         json writeElementSeparator.
         json writeKey: 'runtime'    value: BenchmarkPlatform current configurationStringRuntime.
         json writeElementSeparator.
-        json writeKey: 'os'         value: BenchmarkPlatform current configurationStringOS
+        json writeKey: 'os'         value: BenchmarkPlatform current configurationStringOS.
         json writeElementSeparator.
         json writeKey: 'mechineid'   value: self machineId.
     ].
--- a/s/BenchmarkRunner.st	Sun Jul 14 00:16:41 2013 +0100
+++ b/s/BenchmarkRunner.st	Sun Jul 14 00:42:26 2013 +0100
@@ -184,10 +184,14 @@
     "Write report"
     file notNil ifTrue:[
         file asFilename writingFileDo:[:s|
-            report write: result on: s 
+            report
+                machineId: machineid;
+                write: result on: s 
         ]
     ] ifFalse:[
-        report write: result on: BenchmarkPlatform current stdout
+        report
+            machineId: machineid;
+            write: result on: BenchmarkPlatform current stdout
     ].
 
     self exit: 0.