roman | 300b878 | 2022-08-11 12:49:21 +0200 | [diff] [blame^] | 1 | #!/usr/bin/expect -f |
2 | |||||
3 | set timeout 1 | ||||
4 | |||||
5 | spawn $env(YANGLINT) | ||||
6 | expect -exact "> " | ||||
7 | send -- "feature -a\r" | ||||
8 | expect { | ||||
9 | "feature -a\r | ||||
10 | yang:\r | ||||
11 | \t(none)\r | ||||
12 | ietf-yang-schema-mount:\r | ||||
13 | \t(none)\r | ||||
14 | > " { } | ||||
15 | timeout { exit 1 } | ||||
16 | } | ||||
17 | send -- "exit\r" | ||||
18 | expect eof |