t1405: mark test for 'git pack-refs' as REFFILES

The tests verifies that "pack-refs" causes loose refs to be packed. As both loose and packed refs are concepts specific to the files backend, mark the test as REFFILES. Check the outcome of the pack-refs operation. This was apparently forgotten in the commit introducing this test: 16feb99d (Mar 26 2017, "t1405: some basic tests on main ref store"). Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Han-Wen Nienhuys committed Aug 2, 2021 at 16:53 UTC a50234b3be9d6ff75dfca9b0802e7cf97179ff11
1 file changed +10 -4
t/t1405-main-ref-store.sh
+10 -4
@@ -9,12 +9,18 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9
10 RUN="test-tool ref-store main"
11
12 -test_expect_success 'pack_refs(PACK_REFS_ALL | PACK_REFS_PRUNE)' '
13 - test_commit one &&
12 +
13 +test_expect_success 'setup' '
14 + test_commit one
15 +'
16 +
17 +test_expect_success REFFILES 'pack_refs(PACK_REFS_ALL | PACK_REFS_PRUNE)' '
18 N=`find .git/refs -type f | wc -l` &&
19 test "$N" != 0 &&
16 - $RUN pack-refs 3 &&
17 - N=`find .git/refs -type f | wc -l`
20 + ALL_OR_PRUNE_FLAG=3 &&
21 + $RUN pack-refs ${ALL_OR_PRUNE_FLAG} &&
22 + N=`find .git/refs -type f` &&
23 + test -z "$N"
24 '
25
26 test_expect_success 'create_symref(FOO, refs/heads/main)' '