Correct various logic errors in script executor, especially for multi-part tests.
Authored by: johnhartman 2010-04-16
Parent: [r791]
Child: [r793]