1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/projects/test_suite/tests/02-unknown-command

21 lines
297 B
Plaintext
Executable File

#!/usr/bin/expect
set timeout 2
spawn pseudoterm $env(PORT)
sleep 1
expect {
">$" {}
timeout { exit 1 }
}
send "some_definately_unknown_command\n"
expect {
"shell: command "some_definately_unknown_command" not found." {}
timeout { exit 1 }
}
puts "\nTest successful!\n"