Skip to content

Commit ded9ea9

Browse files
pks-tgitster
authored andcommitted
fixup! t0450: add allowlist for builtins with missing .adoc
1 parent 0c66155 commit ded9ea9

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

t/t0450-txt-doc-vs-help.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,19 @@ do
112112
adoc="$(builtin_to_adoc "$builtin")" &&
113113
preq="$(echo BUILTIN_ADOC_$builtin | tr '[:lower:]-' '[:upper:]_')" &&
114114

115-
# if and only if *.adoc is missing, builtin shall be listed in t0450/adoc-missing
116-
result=success
115+
# If and only if *.adoc is missing, builtin shall be listed in t0450/adoc-missing.
117116
if grep -q "^$builtin$" "$TEST_DIRECTORY"/t0450/adoc-missing
118117
then
118+
test_expect_success "$builtin appropriately marked as not having .adoc" '
119+
! test -f "$adoc"
120+
'
121+
else
119122
test_set_prereq "$preq"
120-
result=failure
121-
fi &&
122-
test_expect_$result "$builtin appropriately marked as having missing .adoc" '
123-
test -f "$adoc"
124-
'
123+
124+
test_expect_success "$builtin appropriately marked as having .adoc" '
125+
test -f "$adoc"
126+
'
127+
fi
125128

126129
# *.adoc output assertions
127130
test_expect_success "$preq" "$builtin *.adoc SYNOPSIS has dashed labels" '

t/t0450/adoc-missing

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
checkout--worker
2+
merge-ours
3+
merge-recursive
4+
merge-recursive-ours
5+
merge-recursive-theirs
6+
merge-subtree
7+
pickaxe
8+
submodule--helper
9+
upload-archive--writer

0 commit comments

Comments
 (0)