From 760ad7c98a4a322b1f028ea9585cd17c5b74b2e2 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 30 Oct 2018 10:04:23 -0300 Subject: core.sysdetect: add fork-free OS detection (#938) Detect operating system and architecture without forking subprocesses, doing `file`-like detection reading data from well-known system executables. --- spec/util/test_env.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index f4cd3f60..6850214f 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua @@ -807,9 +807,9 @@ local function setup_luarocks() if test_env.TEST_TARGET_OS == "windows" then if test_env.MINGW then - table.insert(lines, [[SYSTEM = "MINGW",]]) + table.insert(lines, [[SYSTEM = "mingw",]]) else - table.insert(lines, [[SYSTEM = "WindowsNT",]]) + table.insert(lines, [[SYSTEM = "windows",]]) end table.insert(lines, ("WIN_TOOLS = %q,"):format(testing_paths.win_tools)) end -- cgit v1.2.3-55-g6feb