testport: Fix failed build not getting the status/phase properly