From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QQlBS-0001dL-TQ for garchives@archives.gentoo.org; Sun, 29 May 2011 18:57:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C116A1C0FB; Sun, 29 May 2011 18:57:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 92A721C0FB for ; Sun, 29 May 2011 18:57:16 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2A65B1B4023 for ; Sun, 29 May 2011 18:57:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 635F680511 for ; Sun, 29 May 2011 18:57:15 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <8c73247fd7fe389dba9edd6cab2a436ef3a0c2d9.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/library/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: PMSTestSuite/library/case.py X-VCS-Directories: PMSTestSuite/library/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 8c73247fd7fe389dba9edd6cab2a436ef3a0c2d9 Date: Sun, 29 May 2011 18:57:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 8cf80429b15ace72d583630edb8dd185 commit: 8c73247fd7fe389dba9edd6cab2a436ef3a0c2d9 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Sun May 29 18:57:12 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Sun May 29 18:57:12 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D8c73247f Output EAPI in ebuilds. --- PMSTestSuite/library/case.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/PMSTestSuite/library/case.py b/PMSTestSuite/library/case.py index 1f8cf43..103d822 100644 --- a/PMSTestSuite/library/case.py +++ b/PMSTestSuite/library/case.py @@ -15,6 +15,8 @@ ebuild_header =3D '''# Copyright 1999-2011 Gentoo Found= ation # Distributed under the terms of the GNU General Public License v2 # $Header: $ =20 +EAPI=3D%d + inherit pms-test =20 ''' @@ -79,7 +81,7 @@ class EbuildTestCase(TestCase): =20 def __str__(self): """ Return the ebuild contents as string. """ - contents =3D [ebuild_header] + contents =3D [ebuild_header % self._parent.eapi] =20 for k, v in self._parent.ebuild_vars.items(): contents.append('%s=3D"%s"\n' % (k, v)) # XXX: escaping