diff options
author | Richard Maw <richard.maw@gmail.com> | 2017-01-08 14:59:25 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2017-01-08 15:01:29 +0000 |
commit | c9c0d3d997bf878164d9123743363d23e789932a (patch) | |
tree | 55a42e15dc4457d3016f1344ffe8df853b53193e /testing | |
parent | 17284b8e42da5a359f06dd4b56488914a008c1c4 (diff) | |
download | gitano-c9c0d3d997bf878164d9123743363d23e789932a.tar.gz |
testing: Add a way to extract variables from the test suite
Diffstat (limited to 'testing')
-rw-r--r-- | testing/gitano-test-tool.in | 3 |
1 files changed, 3 insertions, 0 deletions
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(...) |