main: Move 'start' event to correct place (signals start of test run, not individual tests)

Mon, 10 Sep 2018 13:48:25 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 10 Sep 2018 13:48:25 +0100
changeset 114
48aab6c9e9d3
parent 113
f5c1ccc58b48
child 115
0f8d0906af6e

main: Move 'start' event to correct place (signals start of test run, not individual tests)

main.lua file | annotate | diff | comparison | revisions
--- a/main.lua	Mon Sep 10 13:47:34 2018 +0100
+++ b/main.lua	Mon Sep 10 13:48:25 2018 +0100
@@ -236,7 +236,6 @@
 
 local function run_test_script(script_name)
 
-	log_data("start", { metadata = test_metadata });
 	local ok, result, err = pcall(main, log_data, script_name);
 
 	local exit_code = 0;
@@ -255,6 +254,8 @@
 	return exit_code;
 end
 
+log_data("start", { metadata = test_metadata });
+
 local exit_code = 0;
 for i = 1, #arg do
 	local ret = run_test_script(arg[i]);

mercurial