File: complete_propagate.exp

package info (click to toggle)
monotone 1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 20,648 kB
  • sloc: cpp: 86,443; sh: 6,906; perl: 924; makefile: 838; python: 517; lisp: 379; sql: 118; exp: 91; ansic: 52
file content (38 lines) | stat: -rw-r--r-- 892 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
send_user "\n===== BEGIN complete_propagate  =====\n"
expect -re "@ $"
send_user "\n===== Testing for the 'propagate' command =====\n"
send "\n[escape $mtn_cmd] propagate "
expect {
    -ex " propagate " {}
    timeout { failure "' propagate '"; exit }
}

send "\t"
expect {
    -ex "prop-br1" {}
    timeout { failure "'prop-bra1'"; exit }
}
expect {
    -ex "prop-bra2" {}
    timeout { failure "'prop-bra2'"; exit }
}

send "\003\n"

expect -re "@ $"
send_user "\n===== Testing that the 'propagate' completes the second branch correctly =====\n"
# One \t is enough for the second branch name to expand
send "\n[escape $mtn_cmd] propagate prop-br1 prop-bra"
expect {
    -ex " propagate " {}
    timeout { failure "' propagate '"; exit }
}

send "\t"
expect {
    -ex "prop-bra2" {}
    timeout { failure "'prop-bra2'"; exit }
}

send_user "\n===== END complete_propagate  =====\n"
success