# # patch "ChangeLog" # from [acb9b81e92fd4b1dd67d14cb12270dbf07803a7c] # to [b9882c112994ab23cde0a5f5cb9dd257a1d388ab] # # patch "std_hooks.lua" # from [979f3a22db89cdd9e14d79262c4d48b8633aabb4] # to [a082961f690e76d56cadda6fcb4cf77f5b40ee7a] # ======================================================================== --- ChangeLog acb9b81e92fd4b1dd67d14cb12270dbf07803a7c +++ ChangeLog b9882c112994ab23cde0a5f5cb9dd257a1d388ab @@ -1,3 +1,8 @@ +2005-08-18 Timothy Brownawell + + * std_hooks.lua: accept_testresult_change now only cares about + testresults listed in MT/wanted-testresults + 2005-08-18 Matthew Gregan * INSTALL: Remove outdated references to configure options and ======================================================================== --- std_hooks.lua 979f3a22db89cdd9e14d79262c4d48b8633aabb4 +++ std_hooks.lua a082961f690e76d56cadda6fcb4cf77f5b40ee7a @@ -203,9 +203,19 @@ end function accept_testresult_change(old_results, new_results) - for test,res in pairs(old_results) + local reqfile = io.open("MT/wanted-testresults", "r") + if (reqfile == nil) then return true end + local line = reqfile:read() + local required = {} + while (line ~= nil) do - if res == true and new_results[test] ~= true + required[line] = true + line = reqfile:read() + end + io.close(reqfile) + for test, res in pairs(required) + do + if old_results[test] == true and new_results[test] ~= true then return false end