Commit 7906e506 authored by Christian Kellner's avatar Christian Kellner
Browse files

Write system information to run log

parent 8e618117
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment