]> arthur.barton.de Git - bup.git/commit - t/test.sh
vfs: correctly handle reading small files.
authorAvery Pennarun <apenwarr@gmail.com>
Fri, 25 Jun 2010 17:13:49 +0000 (13:13 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Fri, 25 Jun 2010 17:15:29 +0000 (13:15 -0400)
commita63f1c9245df11397ad11fd00f27e96244ee0adf
tree2fc6513d9ecf072d117a5fc77333d80ea6332278
parent73a84eed06109b3f9bc3a66f3d979b4ad0203df3
vfs: correctly handle reading small files.

After the recent change to let vfs seek around in files, we broke support
for files that were only one chunk.  Fix it up, then add some unit tests to
detect such mistakes in the future.

Also, 'bup ftp' now returns nonzero if it catches any exceptions during
execution, making it more suitable for use in scripts... such as the unit
tests :)

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
cmd/ftp-cmd.py
lib/bup/vfs.py
t/test.sh