diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-10-30 10:04:23 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-30 10:04:23 -0300 |
commit | 760ad7c98a4a322b1f028ea9585cd17c5b74b2e2 (patch) | |
tree | cde11b0975132e82062417c2a0057b13c7b6df4d /spec | |
parent | 0c534c71465474b92710a2951bf15370fcc8c663 (diff) | |
download | luarocks-760ad7c98a4a322b1f028ea9585cd17c5b74b2e2.tar.gz luarocks-760ad7c98a4a322b1f028ea9585cd17c5b74b2e2.tar.bz2 luarocks-760ad7c98a4a322b1f028ea9585cd17c5b74b2e2.zip |
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.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/util/test_env.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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() | |||
807 | 807 | ||
808 | if test_env.TEST_TARGET_OS == "windows" then | 808 | if test_env.TEST_TARGET_OS == "windows" then |
809 | if test_env.MINGW then | 809 | if test_env.MINGW then |
810 | table.insert(lines, [[SYSTEM = "MINGW",]]) | 810 | table.insert(lines, [[SYSTEM = "mingw",]]) |
811 | else | 811 | else |
812 | table.insert(lines, [[SYSTEM = "WindowsNT",]]) | 812 | table.insert(lines, [[SYSTEM = "windows",]]) |
813 | end | 813 | end |
814 | table.insert(lines, ("WIN_TOOLS = %q,"):format(testing_paths.win_tools)) | 814 | table.insert(lines, ("WIN_TOOLS = %q,"):format(testing_paths.win_tools)) |
815 | end | 815 | end |