def METHOD_NAME(self):
    # The wrapper replaces the include paths and runs until EOF.
    self._bazel_subprocess_mock.stderr = io.BytesIO()
    argv = ["bazel", "dummy_arg"]
    with self.assertRaises(SystemExit) as detail:
        self._do_main(argv)
    self.assertEqual(
        detail.exception.code,
        self._bazel_subprocess_mock.returncode)
    self.assertEqual("", self._stderr.decode("utf-8"))
    self.assertSequenceEqual(
        self._bazel_subprocess_actions,
        ["terminate", "wait"])