From 9b86a03b667c9d8e5ccc9384e478285c6ac610f0 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 13 Sep 2019 17:55:06 +0200 Subject: [PATCH] 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. --- tests/run.sh | 1 - tests/test-gravity.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/run.sh b/tests/run.sh index a1dc3c05..37c28b99 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -57,7 +57,6 @@ if [ -z "$build_dir" ]; then build_dir="$source_dir" fi fi -export build_dir # Get test files: test*, or the ones provided as args (relative to tests/). if [ $# != 0 ]; then diff --git a/tests/test-gravity.lua b/tests/test-gravity.lua index bf5fcf80..bebb845b 100644 --- a/tests/test-gravity.lua +++ b/tests/test-gravity.lua @@ -17,7 +17,7 @@ local function check_done() end local err = spawn.with_line_callback( - { os.getenv("build_dir") .. "/test-gravity" }, + { "./test-gravity" }, { exit = function(what, code) assert(what == "exit", what)