diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-05 15:42:25 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-11 14:38:06 -0300 |
commit | 660f088cf936dcaa65a1c7eb2793df78777ad924 (patch) | |
tree | 0958663cdfc33811293e4d5319f2ce9b4a2569a6 /spec | |
parent | fa3f92059c51cbcdf26df9a010f5eadd11a9567d (diff) | |
download | luarocks-660f088cf936dcaa65a1c7eb2793df78777ad924.tar.gz luarocks-660f088cf936dcaa65a1c7eb2793df78777ad924.tar.bz2 luarocks-660f088cf936dcaa65a1c7eb2793df78777ad924.zip |
Fix the way we compare environments
This is not even using a md5sum hash anymore. Seems to work
fine on Linux, will probably end up doing the same on
other platforms.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/util/test_env.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index e318128e..23ca5c77 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua | |||
@@ -348,7 +348,7 @@ end | |||
348 | -- @return md5sum string: md5sum of directory | 348 | -- @return md5sum string: md5sum of directory |
349 | local function hash_environment(path) | 349 | local function hash_environment(path) |
350 | if test_env.TEST_TARGET_OS == "linux" then | 350 | if test_env.TEST_TARGET_OS == "linux" then |
351 | return execute_output("find " .. path .. " -printf \"%s %p\n\" | md5sum") | 351 | return execute_output("cd " .. path .. " && find . -printf \"%s %p\n\"") |
352 | elseif test_env.TEST_TARGET_OS == "osx" then | 352 | elseif test_env.TEST_TARGET_OS == "osx" then |
353 | return execute_output("find " .. path .. " -type f -exec stat -f \"%z %N\" {} \\; | md5") | 353 | return execute_output("find " .. path .. " -type f -exec stat -f \"%z %N\" {} \\; | md5") |
354 | elseif test_env.TEST_TARGET_OS == "windows" then | 354 | elseif test_env.TEST_TARGET_OS == "windows" then |