Fix runner.rb not propagating QEMU exit status

pull/41/head
Andre Richter 5 years ago
parent 6d9641d05f
commit 666d349a51
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

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

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

Loading…
Cancel
Save