Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/library/standard/
Date: Wed, 27 Jul 2011 16:50:41
Message-Id: 46a0aa9e74e537fe6a83adf477392e373439f55f.mgorny@gentoo
1 commit: 46a0aa9e74e537fe6a83adf477392e373439f55f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 27 16:39:24 2011 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 27 16:39:24 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=46a0aa9e
7
8 Switch from pkg.metadata[] to pkg.use.
9
10 ---
11 pmstestsuite/library/standard/eclass_metadata.py | 17 ++++++++---------
12 1 files changed, 8 insertions(+), 9 deletions(-)
13
14 diff --git a/pmstestsuite/library/standard/eclass_metadata.py b/pmstestsuite/library/standard/eclass_metadata.py
15 index 4ab4df1..ea15a38 100644
16 --- a/pmstestsuite/library/standard/eclass_metadata.py
17 +++ b/pmstestsuite/library/standard/eclass_metadata.py
18 @@ -32,21 +32,20 @@ class VariableInheritanceTest(DBusEclassTestCase):
19 DBusEclassTestCase.__init__(self, *args, **kwargs)
20 self.ebuild_vars[self.var_name] = self.var_ebuild_value
21
22 +class IUseInheritanceTest(VariableInheritanceTest):
23 + """ IUSE variable inheritance test. """
24 +
25 + var_name = 'IUSE'
26 + var_eclass_value = 'foo'
27 + var_ebuild_value = 'bar'
28 +
29 def check_dbus_result(self, output, pm):
30 # ensure it got installed first
31 if not DBusEclassTestCase.check_dbus_result(self, output, pm):
32 return False
33
34 - meta = pm.installed[self.atom(pm)].metadata
35 - spl = meta[self.var_name].split()
36 + spl = pm.installed[self.atom(pm)].use
37 return self.var_eclass_value in spl \
38 and self.var_ebuild_value in spl
39
40 -class IUseInheritanceTest(VariableInheritanceTest):
41 - """ IUSE variable inheritance test. """
42 -
43 - var_name = 'IUSE'
44 - var_eclass_value = 'foo'
45 - var_ebuild_value = 'bar'
46 -
47 # XXX: REQUIRED_USE