* runtest.exp: Ensure that multipass pass variables are always
commit73a138783acb52eb30ad0df731dc390170d803ad
authorJacob Bachmeyer <jcb62281@gmail.com>
Thu, 22 Nov 2018 01:04:10 +0000 (22 12:04 +1100)
committerBen Elliston <bje@gnu.org>
Thu, 22 Nov 2018 01:04:10 +0000 (22 12:04 +1100)
tree50d2c18a898e630f91018dc459a7387de80425d1
parentffca2d28a3909351b1da633bec179a47ac9280e0
* runtest.exp: Ensure that multipass pass variables are always
restored.  Previously, they were only restored if the "Go digging
for tests" branch was taken near the end of runtest.exp.

This bug was found while splitting a new variable out of some uses of
$srcdir when Emacs paren highlighting did not look right.  Sure
enough, the per-pass variables are set unconditionally, but are only
restored if the "Go digging for tests" branch was taken.  This patch
moves that loop out of an 'else' block and into the same 'foreach'
that contains the loop that sets per-pass variables.

Signed-off-by: Ben Elliston <bje@gnu.org>
ChangeLog
runtest.exp