tests: do not export build_dir (#2875)

If really necessary this should be an uppercased var, but it is only
used with test-gravity.lua, where we can just rely on `$PWD` being the
build dir.
This commit is contained in:
Daniel Hahler 2019-09-13 17:55:06 +02:00 committed by GitHub
parent 4c31a0f745
commit 9b86a03b66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -57,7 +57,6 @@ if [ -z "$build_dir" ]; then
build_dir="$source_dir" build_dir="$source_dir"
fi fi
fi fi
export build_dir
# Get test files: test*, or the ones provided as args (relative to tests/). # Get test files: test*, or the ones provided as args (relative to tests/).
if [ $# != 0 ]; then if [ $# != 0 ]; then

View File

@ -17,7 +17,7 @@ local function check_done()
end end
local err = spawn.with_line_callback( local err = spawn.with_line_callback(
{ os.getenv("build_dir") .. "/test-gravity" }, { "./test-gravity" },
{ {
exit = function(what, code) exit = function(what, code)
assert(what == "exit", what) assert(what == "exit", what)