From c9c0d3d997bf878164d9123743363d23e789932a Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Sun, 8 Jan 2017 14:59:25 +0000 Subject: testing: Add a way to extract variables from the test suite --- testing/gitano-test-tool.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testing') diff --git a/testing/gitano-test-tool.in b/testing/gitano-test-tool.in index 88ccbc5..944a3c2 100644 --- a/testing/gitano-test-tool.in +++ b/testing/gitano-test-tool.in @@ -46,6 +46,9 @@ local function unix_assert(ret, errno) end local function run_program(t) + if t.env and os.getenv("GITANO_DUMP_VARIABLE_FILE") then + t.env["GITANO_DUMP_VARIABLE_FILE"] = os.getenv("GITANO_DUMP_VARIABLE_FILE") + end local f = io.open(basedir .. "last-program", "w") local function print (...) f:write(...) -- cgit v1.2.1