'Test that an error in the batch file stops running the batch.'

def testError(self):

    cmds = 'chown    0    missingFile\npwd\nexit\n'
    def _cbCheckResult(res):
        self.assertNotIn(self.testDir.asBytesMode().path, res)
    d = self._getBatchOutput(cmds)
    d.addCallback(_cbCheckResult)
    return d
