test harness: Fix a bug whereby 'todo' state would propagate to all subsequent test points.
Update expectations on the subshell test (which triggered this bug, since it has a passing test point following a 'todo' test point).
This commit is contained in:
parent
b2ac98b981
commit
11c060ab76
|
@ -30,7 +30,7 @@
|
||||||
BUFFER='tar cf - * | (cd /target; tar xfp -)'
|
BUFFER='tar cf - * | (cd /target; tar xfp -)'
|
||||||
|
|
||||||
expected_region_highlight=(
|
expected_region_highlight=(
|
||||||
"1 3 $ZSH_HIGHLIGHT_STYLES[command] 'not yet implemented'" # tar
|
"1 3 $ZSH_HIGHLIGHT_STYLES[command]" # tar
|
||||||
"15 16 $ZSH_HIGHLIGHT_STYLES[command] 'not yet implemented'" # cd
|
"15 16 $ZSH_HIGHLIGHT_STYLES[command] 'not yet implemented'" # cd
|
||||||
"27 29 $ZSH_HIGHLIGHT_STYLES[command] 'not yet implemented'" # tar
|
"27 29 $ZSH_HIGHLIGHT_STYLES[command]" # tar
|
||||||
)
|
)
|
||||||
|
|
|
@ -91,9 +91,9 @@ run_test() {
|
||||||
done
|
done
|
||||||
|
|
||||||
# Then we compare the observed result with the expected one.
|
# Then we compare the observed result with the expected one.
|
||||||
local todo
|
|
||||||
echo "1..${#expected_region_highlight}"
|
echo "1..${#expected_region_highlight}"
|
||||||
for i in {1..${#expected_region_highlight}}; do
|
for i in {1..${#expected_region_highlight}}; do
|
||||||
|
local todo=
|
||||||
highlight_zone=${(z)expected_region_highlight[$i]}
|
highlight_zone=${(z)expected_region_highlight[$i]}
|
||||||
[[ -n "$highlight_zone[4]" ]] && todo=" # TODO $highlight_zone[4]"
|
[[ -n "$highlight_zone[4]" ]] && todo=" # TODO $highlight_zone[4]"
|
||||||
for j in {$highlight_zone[1]..$highlight_zone[2]}; do
|
for j in {$highlight_zone[1]..$highlight_zone[2]}; do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user