[acceptance-test] Ensure the exit code of the main test script is used