ceph/qa/workunits/snaps/snap-rm-diff.sh
Sage Weil 9e4adf0de9 qa: make snap-rm-diff workunit clean up
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-17 09:22:24 -07:00

11 lines
244 B
Bash
Executable File

#!/bin/sh -ex
wget -q http://ceph.newdream.net/qa/linux-2.6.33.tar.bz2
mkdir foo
cp linux* foo
mkdir foo/.snap/barsnap
rm foo/linux*
diff -q foo/.snap/barsnap/linux* linux* && echo "passed: files are identical"
rmdir foo/.snap/barsnap
echo OK