Fix runner.rb not propagating QEMU exit status

This commit is contained in:
Andre Richter 2020-01-04 00:37:57 +01:00
parent 6d9641d05f
commit 666d349a51
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E
2 changed files with 5 additions and 2 deletions

View File

@ -389,7 +389,8 @@ def exec
begin begin
@output << io.read_nonblock(1024) @output << io.read_nonblock(1024)
rescue EOFError rescue EOFError
error = false io.close
error = $CHILD_STATUS.to_i != 0
break break
end end
end end

View File

@ -5,6 +5,7 @@
# #
# Copyright (c) 2019-2020 Andre Richter <andre.o.richter@gmail.com> # Copyright (c) 2019-2020 Andre Richter <andre.o.richter@gmail.com>
require 'English'
require 'pty' require 'pty'
# Test base class. # Test base class.
@ -109,7 +110,8 @@ class RawTest < Test
begin begin
@output << io.read_nonblock(1024) @output << io.read_nonblock(1024)
rescue EOFError rescue EOFError
error = false io.close
error = $CHILD_STATUS.to_i != 0
break break
end end
end end