diff --git a/tests/script/sh/demo.lua b/tests/script/sh/demo.lua index 2bb660b6b3d9b256921aa757c8565dde4526a9dd..c5e5582fc30b58db30a5b18faa4ccfd0a5f656d0 100644 --- a/tests/script/sh/demo.lua +++ b/tests/script/sh/demo.lua @@ -30,7 +30,7 @@ end function test_finalize(ans, key) local ret = 0.0 - if (ans[key] ~= nil) + if (ans[key] ~= nil and ans[key]["num"] == 30000) then ret = ans[key]["sum"]/ans[key]["num"] ans[key]["sum"] = 0.0