]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1405: move reffiles specific tests to t0601
authorJohn Cai <johncai86@gmail.com>
Fri, 19 Jan 2024 20:18:53 +0000 (20:18 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Jan 2024 23:56:59 +0000 (15:56 -0800)
Move this test to t0601 with other reffiles specific pack-refs tests
since it is reffiles specific in that it looks into the loose refs
directory for an assertion.

Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0601-reffiles-pack-refs.sh
t/t1405-main-ref-store.sh

index 4929cc7b452dbce1e1cca10c75eccab4d48f4a7d..9ec90ba7ced4931b83a28c8a83202b59f471f05e 100755 (executable)
@@ -32,6 +32,14 @@ test_expect_success 'prepare a trivial repository' '
        HEAD=$(git rev-parse --verify HEAD)
 '
 
+test_expect_success 'pack_refs(PACK_REFS_ALL | PACK_REFS_PRUNE)' '
+       N=`find .git/refs -type f | wc -l` &&
+       test "$N" != 0 &&
+       test-tool ref-store main pack-refs PACK_REFS_PRUNE,PACK_REFS_ALL &&
+       N=`find .git/refs -type f` &&
+       test -z "$N"
+'
+
 SHA1=
 
 test_expect_success 'see if git show-ref works as expected' '
index 62c1eadb190880a963adbb839789ed2c537952ec..976bd71efb561d7a374b801ef087edc51f8de01a 100755 (executable)
@@ -15,14 +15,6 @@ test_expect_success 'setup' '
        test_commit one
 '
 
-test_expect_success REFFILES 'pack_refs(PACK_REFS_ALL | PACK_REFS_PRUNE)' '
-       N=`find .git/refs -type f | wc -l` &&
-       test "$N" != 0 &&
-       $RUN pack-refs PACK_REFS_PRUNE,PACK_REFS_ALL &&
-       N=`find .git/refs -type f` &&
-       test -z "$N"
-'
-
 test_expect_success 'create_symref(FOO, refs/heads/main)' '
        $RUN create-symref FOO refs/heads/main nothing &&
        echo refs/heads/main >expected &&