From 660f088cf936dcaa65a1c7eb2793df78777ad924 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 5 Apr 2018 15:42:25 -0300 Subject: 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. --- spec/util/test_env.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- @return md5sum string: md5sum of directory local function hash_environment(path) if test_env.TEST_TARGET_OS == "linux" then - return execute_output("find " .. path .. " -printf \"%s %p\n\" | md5sum") + return execute_output("cd " .. path .. " && find . -printf \"%s %p\n\"") elseif test_env.TEST_TARGET_OS == "osx" then return execute_output("find " .. path .. " -type f -exec stat -f \"%z %N\" {} \\; | md5") elseif test_env.TEST_TARGET_OS == "windows" then -- cgit v1.2.3-55-g6feb