mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-15 18:14:02 +00:00
Fix runner.rb not propagating QEMU exit status
This commit is contained in:
parent
6d9641d05f
commit
666d349a51
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user