X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT260-thread-order.sh;h=5239bd443512988f9d11f04fa4cba1894db918c1;hb=243d7e30dcd80041760307d8d0d2a1839f36eca2;hp=b435d79fb0db0712c3479c407e0ac3a03bbaf951;hpb=c2bbe9eb6c46b2f1723ce6c5e26816dd82e42c6f;p=notmuch diff --git a/test/T260-thread-order.sh b/test/T260-thread-order.sh index b435d79f..5239bd44 100755 --- a/test/T260-thread-order.sh +++ b/test/T260-thread-order.sh @@ -30,7 +30,6 @@ expected=$(for ((i = 0; i < $nthreads; i++)); do test_expect_equal "$output" "$expected" test_begin_subtest "Messages with all parents get linked in all delivery orders" -test_subtest_known_broken # Here we do the same thing as the previous test, but each message # references all of its parents. Since every message references the # root of the thread, each thread should always be fully joined. This @@ -46,9 +45,12 @@ for ((n = 0; n < 4; n++)); do while read -a parents; do references="" parent=${parents[$n]} - while [[ $parent != None ]]; do + while [[ ${parent:-None} != None ]]; do references=" $references" + pp=$parent parent=${parents[$parent]} + # Avoid looping over broken input (if ever) + parents[$pp]="None" done generate_message \