Skip to content

Commit bbd6106

Browse files
pks-tgitster
authored andcommitted
t: mark tests regarding git-pack-refs(1) to be backend specific
Both t1409 and t3210 exercise parts of git-pack-refs(1). Given that we must check the on-disk files to verify whether the backend has indeed packed refs as expected those test suites are deeply tied to the actual backend that is in use. Mark the test suites to depend on the REFFILES backend. Signed-off-by: Patrick Steinhardt <[email protected]> Reviewed-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7a74690 commit bbd6106

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

t/t1409-avoid-packing-refs.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ test_description='avoid rewriting packed-refs unnecessarily'
55
TEST_PASSES_SANITIZE_LEAK=true
66
. ./test-lib.sh
77

8+
if test_have_prereq !REFFILES
9+
then
10+
skip_all='skipping files-backend specific pack-refs tests'
11+
test_done
12+
fi
13+
814
# Add an identifying mark to the packed-refs file header line. This
915
# shouldn't upset readers, and it should be omitted if the file is
1016
# ever rewritten.

t/t3210-pack-refs.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
1515
TEST_PASSES_SANITIZE_LEAK=true
1616
. ./test-lib.sh
1717

18+
if test_have_prereq !REFFILES
19+
then
20+
skip_all='skipping files-backend specific pack-refs tests'
21+
test_done
22+
fi
23+
1824
test_expect_success 'enable reflogs' '
1925
git config core.logallrefupdates true
2026
'

0 commit comments

Comments
 (0)