summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-06-09 03:59:08 -0700
committerZac Medico <zmedico@gentoo.org>2011-06-09 03:59:08 -0700
commit29b8ad2f115bdb146ecc2ed932e4af5f1bb955ff (patch)
tree39efcb80b3cf15cbd9461204d3e301dc6b1d2761
parent65f3a4d8af054756b9b553c341118334b4526075 (diff)
downloadportage-29b8ad2f115bdb146ecc2ed932e4af5f1bb955ff.tar.gz
portage-29b8ad2f115bdb146ecc2ed932e4af5f1bb955ff.tar.bz2
portage-29b8ad2f115bdb146ecc2ed932e4af5f1bb955ff.zip
SpawnTestCase: check returncode
-rw-r--r--pym/portage/tests/ebuild/test_spawn.py2
1 files changed, 1 insertions, 1 deletions
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')