From ed9c7f10d7afca100f48f22c40906cddfce9c4ef Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 29 Feb 2024 12:35:35 -0300 Subject: tests: use paths with spaces when testing on Windows This should force us to test our compatibility with paths with spaces all over. --- spec/util/test_env.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index be75b4ec..21fa6e9b 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua @@ -720,7 +720,13 @@ local function create_testing_paths(suffix) paths.fixtures_repo_dir = dir_path(base_dir, "spec", "fixtures", "a_repo") paths.gpg_dir = dir_path(base_dir, "spec", "fixtures", "gpg") - local testrun_dir = dir_path(base_dir, "testrun") + local testrun_dir + if test_env.TEST_TARGET_OS == "windows" then + testrun_dir = dir_path(base_dir, "test run") + else + testrun_dir = dir_path(base_dir, "testrun") + end + paths.testrun_dir = testrun_dir paths.testing_lrprefix = dir_path(testrun_dir, "testing_lrprefix-" .. suffix) paths.testing_tree = dir_path(testrun_dir, "testing-" .. suffix) -- cgit v1.2.3-55-g6feb