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.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua
index 23ca5c77..94008913 100644
--- a/spec/util/test_env.lua
+++ b/spec/util/test_env.lua
@@ -175,7 +175,7 @@ local function execute_output(command, print_command, env_variables)
175 local file = assert(io.popen(command)) 175 local file = assert(io.popen(command))
176 local output = file:read('*all') 176 local output = file:read('*all')
177 file:close() 177 file:close()
178 return output:gsub("\n","") -- output adding new line, need to be removed 178 return (output:gsub("\r\n", "\n"):gsub("\n$", "")) -- remove final newline
179end 179end
180 180
181--- Set test_env.LUA_V or test_env.LUAJIT_V based 181--- Set test_env.LUA_V or test_env.LUAJIT_V based