File: 30-kill-before-rename-client

package info (click to toggle)
syncmaildir 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,188 kB
  • sloc: ansic: 6,321; sh: 1,995; makefile: 232; xml: 14
file content (20 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

mpull -t
assert $? 0 "failed mpull -t"
echo DEBUG=true >> target/.smd/config.default

mpull
assert $? 0 "failed mpull"
test_eq Mail target/Mail 

for f in .smd/*.db.*; do
	mv $f ${f}.new
	echo 0 > $f
done


mpull
assert $? 0 "failed mpull with .new files around"
test_eq Mail target/Mail