From: Zac Medico Date: Thu, 9 Jun 2011 10:59:08 +0000 (-0700) Subject: SpawnTestCase: check returncode X-Git-Tag: v2.2.0_alpha39~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=29b8ad2f115bdb146ecc2ed932e4af5f1bb955ff;p=portage.git SpawnTestCase: check returncode --- diff --git a/pym/portage/tests/ebuild/test_spawn.py b/pym/portage/tests/ebuild/test_spawn.py index d3fb21f8b..89a6c2807 100644 --- a/pym/portage/tests/ebuild/test_spawn.py +++ b/pym/portage/tests/ebuild/test_spawn.py @@ -30,8 +30,8 @@ class SpawnTestCase(TestCase): scheduler=scheduler, logfile=logfile) proc.start() - proc.wait() os.close(null_fd) + self.assertEqual(proc.wait(), os.EX_OK) f = codecs.open(_unicode_encode(logfile, encoding=_encodings['fs'], errors='strict'), mode='r', encoding=_encodings['content'], errors='strict')