summaryrefslogtreecommitdiff
path: root/tests/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests')
-rwxr-xr-xtests/tests/gitattributes7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/tests/gitattributes b/tests/tests/gitattributes
index a00c1d3..e6089bd 100755
--- a/tests/tests/gitattributes
+++ b/tests/tests/gitattributes
@@ -104,8 +104,12 @@ sfmt_setup () {
}
sums_check () {
- # caller should cd into working directory and set
+ # caller should cd into working directory, set
# $sums $branch
+ # and check out $branch
+
+ sha256sum af/* >../$sums.checkout
+ diff -U0 ../sums ../$sums.checkout
for f in af/*; do
git cat-file blob "refs/heads/$branch:$f" \
@@ -150,6 +154,7 @@ sfmt_import () {
t-dgit $dgitargs import-dsc ../$dscf +$branch
git checkout $branch
+ git reset --hard
sums_check