Skip to content

Commit 0fbdb52

Browse files
bk2204gitster
authored andcommitted
t1007: annotate with SHA1 prerequisite
Since this is a core test that tests basic functionality, annotate the assertions that have dependencies on SHA-1 with the appropriate prerequisite. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 5b9ba9b commit 0fbdb52

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

t/t1007-hash-object.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ echo_without_newline() {
99
}
1010

1111
test_blob_does_not_exist() {
12-
test_expect_success 'blob does not exist in database' "
12+
test_expect_success SHA1 'blob does not exist in database' "
1313
test_must_fail git cat-file blob $1
1414
"
1515
}
1616

1717
test_blob_exists() {
18-
test_expect_success 'blob exists in database' "
18+
test_expect_success SHA1 'blob exists in database' "
1919
git cat-file blob $1
2020
"
2121
}
@@ -73,19 +73,19 @@ test_expect_success "Can't use --path with --no-filters" '
7373

7474
push_repo
7575

76-
test_expect_success 'hash a file' '
76+
test_expect_success SHA1 'hash a file' '
7777
test $hello_sha1 = $(git hash-object hello)
7878
'
7979

8080
test_blob_does_not_exist $hello_sha1
8181

82-
test_expect_success 'hash from stdin' '
82+
test_expect_success SHA1 'hash from stdin' '
8383
test $example_sha1 = $(git hash-object --stdin < example)
8484
'
8585

8686
test_blob_does_not_exist $example_sha1
8787

88-
test_expect_success 'hash a file and write to database' '
88+
test_expect_success SHA1 'hash a file and write to database' '
8989
test $hello_sha1 = $(git hash-object -w hello)
9090
'
9191

@@ -161,7 +161,7 @@ pop_repo
161161
for args in "-w --stdin" "--stdin -w"; do
162162
push_repo
163163

164-
test_expect_success "hash from stdin and write to database ($args)" '
164+
test_expect_success SHA1 "hash from stdin and write to database ($args)" '
165165
test $example_sha1 = $(git hash-object $args < example)
166166
'
167167

@@ -176,14 +176,14 @@ example"
176176
sha1s="$hello_sha1
177177
$example_sha1"
178178

179-
test_expect_success "hash two files with names on stdin" '
179+
test_expect_success SHA1 "hash two files with names on stdin" '
180180
test "$sha1s" = "$(echo_without_newline "$filenames" | git hash-object --stdin-paths)"
181181
'
182182

183183
for args in "-w --stdin-paths" "--stdin-paths -w"; do
184184
push_repo
185185

186-
test_expect_success "hash two files with names on stdin and write to database ($args)" '
186+
test_expect_success SHA1 "hash two files with names on stdin and write to database ($args)" '
187187
test "$sha1s" = "$(echo_without_newline "$filenames" | git hash-object $args)"
188188
'
189189

0 commit comments

Comments
 (0)