I have the following sequence of tests, all configured with items: item.0 item.1

<verbatim>
test0
test1
test2
test3
test4
test4a
seq4
</verbatim>

Each has the following requirements:

<verbatim>
[requirements]
mode itemwait
waiton test[n-1]
</verbatim

Except for seq4 which has the following requirements:

<verbatim>
[requirements]
mode itemwait
waiton test4 test4a
</verbatim>

And test4a depends on test3.

If I run with testpatt: seq4/item.1

I expect to see the following run:

<verbatim>
test0/item.1
test1/item.1
test2/item.1
test3/item.1
test4/item.1
test4a/item.1
seq4/item.1
</verbatim>

Instead I see:

<verbatim>
test0/item.1
test0/item.0
test1/item.1
test1/item.0
test2/item.1
test2/item.0
test3/item.1
test3/item.0
test4/item.1
test4/item.0
test4a/item.1
seq4/item.1
</verbatim>

There is a test in megatest_qa (chained-waiton) that catches this condition.