liminix/tests/ext4/script.expect

11 lines
210 B
Text
Raw Normal View History

2023-11-06 22:52:31 +01:00
set timeout 10
spawn socat unix-connect:vm/console -
send "\r\n"
expect "login:" { send "root\r\n" }
expect "#"
send "echo HELLO WORLD > /hello\r\n"
expect "#"
send "cat /hello\r\n"
expect 'HELLO WORLD'
close