mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Check the exit code.
This commit is contained in:
parent
bf3e2412ff
commit
2061239672
2 changed files with 6 additions and 0 deletions
|
|
@ -272,6 +272,10 @@ class DebugAdapter(Closeable):
|
|||
self._output = self._proc.stdout.read()
|
||||
return self._output
|
||||
|
||||
@property
|
||||
def returncode(self):
|
||||
return self._proc.returncode
|
||||
|
||||
def attach(self, **kwargs):
|
||||
if self._session is not None:
|
||||
raise RuntimeError('already attached')
|
||||
|
|
|
|||
|
|
@ -119,5 +119,7 @@ class LifecycleTests(TestsBase, unittest.TestCase):
|
|||
lifecycle_handshake(session, 'launch')
|
||||
adapter.wait()
|
||||
out = adapter.output.decode('utf-8')
|
||||
rc = adapter.returncode
|
||||
|
||||
self.assertIn('done', out.splitlines())
|
||||
self.assertEqual(rc, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue