dedup

deduplicating backup program
git clone git://git.2f30.org/dedup
Log | Files | Refs | README | LICENSE

commit d7f40da156de18b2835f7387145f8d2fa5e971cc
parent 144794bed9d94498dd76d5c925a1937a81a54ac2
Author: sin <sin@2f30.org>
Date:   Thu, 25 Apr 2019 18:10:39 +0100

Leave artifacts behind if the test fails

Diffstat:
Mdotest | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dotest b/dotest @@ -13,9 +13,9 @@ test0() sum0=`sha1sum "$data" | awk '{print $1}'` sum1=`./dup-unpack -r "$repo" snap0 | sha1sum | awk '{print $1}'` sum2=`./dup-unpack -r "$repo" snap1 | sha1sum | awk '{print $1}'` - rm -rf "$repo" "$data" [ "$sum0" = "$sum1" ] || exit 1 [ "$sum0" = "$sum2" ] || exit 1 + rm -rf "$repo" "$data" } test1() @@ -30,9 +30,9 @@ test1() sum0=`sha1sum "$data" | awk '{print $1}'` sum1=`./dup-unpack -r "$repo" snap0 | sha1sum | awk '{print $1}'` sum2=`./dup-unpack -r "$repo" snap1 | sha1sum | awk '{print $1}'` - rm -rf "$repo" "$data" [ "$sum0" = "$sum1" ] || exit 1 [ "$sum0" = "$sum2" ] || exit 1 + rm -rf "$repo" "$data" } make