aboutsummaryrefslogtreecommitdiff
path: root/spec/util/test_env.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/util/test_env.lua')
-rw-r--r--spec/util/test_env.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua
index 0ddcfe43..fbb46d82 100644
--- a/spec/util/test_env.lua
+++ b/spec/util/test_env.lua
@@ -759,8 +759,11 @@ end
759function test_env.mock_server_init() 759function test_env.mock_server_init()
760 local testing_paths = test_env.testing_paths 760 local testing_paths = test_env.testing_paths
761 assert(test_env.need_rock("restserver-xavante")) 761 assert(test_env.need_rock("restserver-xavante"))
762 local pwd = lfs.currentdir()
763 lfs.chdir(testing_paths.fixtures_dir)
762 local final_command = test_env.execute_helper(testing_paths.lua .. " " .. testing_paths.util_dir .. "/mock-server.lua &", true, test_env.env_variables) 764 local final_command = test_env.execute_helper(testing_paths.lua .. " " .. testing_paths.util_dir .. "/mock-server.lua &", true, test_env.env_variables)
763 os.execute(final_command) 765 os.execute(final_command)
766 lfs.chdir(pwd)
764end 767end
765 768
766function test_env.mock_server_done() 769function test_env.mock_server_done()