From 94aa84d53b52a534ba6da3c34d1879a4a3e3bbbd Mon Sep 17 00:00:00 2001 From: Matthew Berry Date: Tue, 11 Jan 2022 21:48:01 -0800 Subject: [PATCH] Force scanline in mooneye and non-fifo acid tests --- spec/gb/run_test_roms.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/gb/run_test_roms.cr b/spec/gb/run_test_roms.cr index 7c37e42..6116ab8 100644 --- a/spec/gb/run_test_roms.cr +++ b/spec/gb/run_test_roms.cr @@ -42,7 +42,7 @@ unless acid_dir == "" puts "Acid #{"Fifo " if fifo}Tests" Dir.glob("#{acid_dir}/*acid2.gb*").sort.each do |path| test_name = get_test_name acid_dir, path - Process.run "bin/crab", [path, "--headless"] + (fifo ? ["--fifo"] : [] of String) do |process| + Process.run "bin/crab", [path, "--headless"] + (fifo ? ["--fifo"] : ["--scanline"] of String) do |process| kill process, after: 1 end system %[touch out.png] # touch image in case something went wrong @@ -84,7 +84,7 @@ unless mooneye_dir == "" next if path.includes?("util") || path.includes?("manual-only") || path.includes?("dmg") || path.includes?("mgb") || path.includes?("sgb") test_name = get_test_name mooneye_dir, path passed = false - Process.run("bin/crab", [path, "--headless"]) do |process| + Process.run("bin/crab", [path, "--headless", "--scanline"]) do |process| kill process, after: 10 # seconds result = process.output.gets 9 process.terminate if process.exists?