test_doebuild_fd_pipes: test pkg_info
authorZac Medico <zmedico@gentoo.org>
Sun, 7 Jul 2013 20:23:00 +0000 (13:23 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 7 Jul 2013 20:23:00 +0000 (13:23 -0700)
pym/portage/tests/ebuild/test_doebuild_fd_pipes.py

index 6fdda5fea1b451fd4576154bc3a4fb801b4d9152..f0fc93373db80ea63eba65330046bdb958746328 100644 (file)
@@ -33,6 +33,7 @@ class DoebuildFdPipesTestCase(TestCase):
 
                ebuild_body = textwrap.dedent("""
                        S=${WORKDIR}
+                       pkg_info() { echo info ; }
                        pkg_nofetch() { echo nofetch ; }
                        pkg_pretend() { echo pretend ; }
                        pkg_setup() { echo setup ; }
@@ -78,8 +79,9 @@ class DoebuildFdPipesTestCase(TestCase):
                        ebuildpath = portdb.findname(cpv)
                        self.assertNotEqual(ebuildpath, None)
 
-                       for phase in ('pretend', 'setup', 'unpack', 'prepare', 'configure',
-                                'compile', 'test', 'install', 'clean', 'merge', 'nofetch'):
+                       for phase in ('info', 'nofetch',
+                                'pretend', 'setup', 'unpack', 'prepare', 'configure',
+                                'compile', 'test', 'install', 'clean', 'merge'):
 
                                pr, pw = os.pipe()