Leave artifacts behind if the test fails - dedup - deduplicating backup program
HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit d7f40da156de18b2835f7387145f8d2fa5e971cc
DIR parent 144794bed9d94498dd76d5c925a1937a81a54ac2
HTML Author: sin <sin@2f30.org>
Date: Thu, 25 Apr 2019 18:10:39 +0100
Leave artifacts behind if the test fails
Diffstat:
M dotest | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR 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