aboutsummaryrefslogtreecommitdiff
path: root/tests.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests.lua')
-rwxr-xr-xtests.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests.lua b/tests.lua
index d6ad81d..8033acb 100755
--- a/tests.lua
+++ b/tests.lua
@@ -1,6 +1,7 @@
#!/usr/bin/env lua
local subscene = require 'server/subscene'
+local util = require 'lib/util'
local errs = 0
@@ -17,12 +18,12 @@ local test_subscene = function ()
sha256 = 'fe88e2c1345a7daed82cb570952c13fae6a6867449f7dd5e719ea0a0c1e2e242'
if not subscene.search(name, out) then
- print('err: subscene: failed to fetch subtitles')
+ util.error('subscene: fetch failed')
errs = errs + 1
end
if not file_hash_verify(out, sha256) then
- print('err: subscene: subtitle hash mismatch')
+ util.error('subscene: hash mismatch')
errs = errs + 1
end