Skip to content
Snippets Groups Projects
Commit cffe70bc authored by bbartels's avatar bbartels
Browse files

quad: add 512 MB RAM limit to test scripts using virtual quad

parent fa14be78
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ Timeout::timeout(30) {
sleep 1
# Start virtual quad
quad_pid = Process.spawn("./virt-quad")
quad_pid = Process.spawn("./virt-quad", :rlimit_as => 536870912) # 512 MiB RAM
sleep 5
......
......@@ -29,7 +29,7 @@ Timeout::timeout(30) {
sleep 1
# Start virtual quad
quad_pid = Process.spawn("./virt-quad")
quad_pid = Process.spawn("./virt-quad", :rlimit_as => 536870912) # 512 MiB RAM
sleep 5
......@@ -50,11 +50,15 @@ Timeout::timeout(30) {
File.write(UART_RX, [0xBE, 1, 0, 0, 0, 0, 0, 0xBF].pack("CCCCCCCC"))
fifo = File.open(UART_TX)
# Receive the header
msg = []
for i in 1..7
sleep 0.010
msg.push(fifo.read(1))
end
# Receive the remaining data, according to the header specified length
length = msg[5..7].join().unpack("S")[0]
msg = []
for i in 1..length
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment