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:
Daniel Shahaf
2015-10-23 04:26:51 +00:00
parent b2ac98b981
commit 11c060ab76
2 changed files with 3 additions and 3 deletions

View File

@@ -91,9 +91,9 @@ run_test() {
done
# Then we compare the observed result with the expected one.
local todo
echo "1..${#expected_region_highlight}"
for i in {1..${#expected_region_highlight}}; do
local todo=
highlight_zone=${(z)expected_region_highlight[$i]}
[[ -n "$highlight_zone[4]" ]] && todo=" # TODO $highlight_zone[4]"
for j in {$highlight_zone[1]..$highlight_zone[2]}; do