[gnome-battery-bench] Write system information to run log



commit 7906e5067eb55860eed23b2171c95c57b9b36126
Author: Christian Kellner <gicmo gnome org>
Date:   Tue Jan 17 17:37:57 2017 +0100

    Write system information to run log

 src/test-run.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/test-run.c b/src/test-run.c
index 27a577d..8d91112 100644
--- a/src/test-run.c
+++ b/src/test-run.c
@@ -6,6 +6,7 @@
 #include <json-glib/json-glib.h>
 
 #include "event-log.h"
+#include "system-info.h"
 #include "test-run.h"
 #include "util.h"
 
@@ -336,6 +337,11 @@ gbb_test_run_write_to_file(GbbTestRun *run,
         g_free(start_string);
     }
 
+    /* probably better to do that when we create the run */
+    g_autoptr(GbbSystemInfo) info = gbb_system_info_acquire();
+    json_builder_set_member_name(builder, "system-info");
+    gbb_system_info_to_json(info, builder);
+
     const GbbPowerState *start_state = gbb_test_run_get_start_state(run);
     const GbbPowerState *end_state = gbb_test_run_get_last_state(run);
     if (end_state != start_state) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]