From 154fca16eb20023bdaafc20cb15636c12a33efb1 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 14 Sep 2012 09:33:54 +0100 Subject: Rework the blackbox tests for bare caches. This reworks the blackbox tests to work with the bare repository caches. For the most part it's slight changes to error messages and tweaks to ignore the repository caches during file listing. --- tests/update-gits-chunk.script | 2 +- tests/update-gits-stratum.script | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/update-gits-chunk.script b/tests/update-gits-chunk.script index b07aef17..54a8d9ed 100755 --- a/tests/update-gits-chunk.script +++ b/tests/update-gits-chunk.script @@ -30,4 +30,4 @@ NEWREF="$(git show-ref --hash farrokh)" # check the top commit of the cached repo's farrokh branch cd "$DATADIR/cache/gits/"*chunk?repo* -test "$(git show-ref --hash refs/remotes/origin/farrokh)" = "$NEWREF" +test "$(git show-ref --hash refs/heads/farrokh)" = "$NEWREF" diff --git a/tests/update-gits-stratum.script b/tests/update-gits-stratum.script index 24b6f199..718f2547 100755 --- a/tests/update-gits-stratum.script +++ b/tests/update-gits-stratum.script @@ -30,4 +30,4 @@ NEWREF="$(git show-ref --hash farrokh)" # check the top commit of the cached repo's farrokh branch cd "$DATADIR/cache/gits/"*chunk?repo* -test "$(git show-ref --hash refs/remotes/origin/farrokh)" = "$NEWREF" +test "$(git show-ref --hash refs/heads/farrokh)" = "$NEWREF" -- cgit v1.2.1