aboutsummaryrefslogtreecommitdiff
path: root/spec/util/test_env.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-02-29 12:35:35 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-02-29 12:46:55 -0300
commited9c7f10d7afca100f48f22c40906cddfce9c4ef (patch)
tree43fae671c94f41188a7d8de641b27bf9a37ad76f /spec/util/test_env.lua
parent41cf95fdf5becce038e68422c294634983727285 (diff)
downloadluarocks-ed9c7f10d7afca100f48f22c40906cddfce9c4ef.tar.gz
luarocks-ed9c7f10d7afca100f48f22c40906cddfce9c4ef.tar.bz2
luarocks-ed9c7f10d7afca100f48f22c40906cddfce9c4ef.zip
tests: use paths with spaces when testing on Windows
This should force us to test our compatibility with paths with spaces all over.
Diffstat (limited to '')
-rw-r--r--spec/util/test_env.lua8
1 files changed, 7 insertions, 1 deletions
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)
720 paths.fixtures_repo_dir = dir_path(base_dir, "spec", "fixtures", "a_repo") 720 paths.fixtures_repo_dir = dir_path(base_dir, "spec", "fixtures", "a_repo")
721 paths.gpg_dir = dir_path(base_dir, "spec", "fixtures", "gpg") 721 paths.gpg_dir = dir_path(base_dir, "spec", "fixtures", "gpg")
722 722
723 local testrun_dir = dir_path(base_dir, "testrun") 723 local testrun_dir
724 if test_env.TEST_TARGET_OS == "windows" then
725 testrun_dir = dir_path(base_dir, "test run")
726 else
727 testrun_dir = dir_path(base_dir, "testrun")
728 end
729
724 paths.testrun_dir = testrun_dir 730 paths.testrun_dir = testrun_dir
725 paths.testing_lrprefix = dir_path(testrun_dir, "testing_lrprefix-" .. suffix) 731 paths.testing_lrprefix = dir_path(testrun_dir, "testing_lrprefix-" .. suffix)
726 paths.testing_tree = dir_path(testrun_dir, "testing-" .. suffix) 732 paths.testing_tree = dir_path(testrun_dir, "testing-" .. suffix)