From 9424e382ece5181f00f70f79219e3248a468eeaa Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 13 Jan 2023 14:22:07 -0500 Subject: Moved tests up. --- t/run.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/run.lua b/t/run.lua index 9ea462f..8c60b9c 100644 --- a/t/run.lua +++ b/t/run.lua @@ -77,6 +77,11 @@ local tests = { break end end + end, + ["07_manifest"] = function() + local results = json.decode(io.open("manifest.json", "rb"):read("*all")) + assert(#results["remotes"] == 2) + assert(#results["addons"] == 2) end } @@ -118,8 +123,10 @@ local function run_tests(tests, arg) print("[FAIL]: " .. debug.traceback(err, 2)) print() print() - print("Last Command: " .. last_command) - print(json.encode(last_command_result)) + if last_command then + print("Last Command: " .. last_command) + print(json.encode(last_command_result)) + end fail_count = fail_count + 1 failed = true end) -- cgit v1.2.3