mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-30 20:34:45 +01:00
Force scanline in mooneye and non-fifo acid tests
This commit is contained in:
parent
4001dae0b8
commit
94aa84d53b
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ unless acid_dir == ""
|
||||||
puts "Acid #{"Fifo " if fifo}Tests"
|
puts "Acid #{"Fifo " if fifo}Tests"
|
||||||
Dir.glob("#{acid_dir}/*acid2.gb*").sort.each do |path|
|
Dir.glob("#{acid_dir}/*acid2.gb*").sort.each do |path|
|
||||||
test_name = get_test_name acid_dir, 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
|
kill process, after: 1
|
||||||
end
|
end
|
||||||
system %[touch out.png] # touch image in case something went wrong
|
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")
|
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
|
test_name = get_test_name mooneye_dir, path
|
||||||
passed = false
|
passed = false
|
||||||
Process.run("bin/crab", [path, "--headless"]) do |process|
|
Process.run("bin/crab", [path, "--headless", "--scanline"]) do |process|
|
||||||
kill process, after: 10 # seconds
|
kill process, after: 10 # seconds
|
||||||
result = process.output.gets 9
|
result = process.output.gets 9
|
||||||
process.terminate if process.exists?
|
process.terminate if process.exists?
|
||||||
|
|
Loading…
Add table
Reference in a new issue