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 <ps@pks.im> Reviewed-by: Christian Couder <christian.couder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Jan 29, 2024 at 12:07 UTC bbd6106967fdb8e97f190f9051b89dcf1633cc56
2 files changed +12
t/t1409-avoid-packing-refs.sh
+6
@@ -5,6 +5,12 @@ test_description='avoid rewriting packed-refs unnecessarily'
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 +if test_have_prereq !REFFILES
9 +then
10 + skip_all='skipping files-backend specific pack-refs tests'
11 + test_done
12 +fi
13 +
14 # Add an identifying mark to the packed-refs file header line. This
15 # shouldn't upset readers, and it should be omitted if the file is
16 # ever rewritten.
t/t3210-pack-refs.sh
+6
@@ -15,6 +15,12 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
15 TEST_PASSES_SANITIZE_LEAK=true
16 . ./test-lib.sh
17
18 +if test_have_prereq !REFFILES
19 +then
20 + skip_all='skipping files-backend specific pack-refs tests'
21 + test_done
22 +fi
23 +
24 test_expect_success 'enable reflogs' '
25 git config core.logallrefupdates true
26 '