diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-03 11:05:57 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-03 11:05:57 -0700 |
commit | 3f9239de54cc90972750f673102f88b824e500ba (patch) | |
tree | 8c5503d4aacf2010f8d5c7d9921f776d2b141ab8 /pym/portage/tests/repoman | |
parent | fea331226ed0d760ab2d0e86650d62dd32230cd6 (diff) | |
download | portage-3f9239de54cc90972750f673102f88b824e500ba.tar.gz portage-3f9239de54cc90972750f673102f88b824e500ba.tar.bz2 portage-3f9239de54cc90972750f673102f88b824e500ba.zip |
tests/emerge: add minimal herds.xml
This will allow src_test to trigger issues like bug #381657.
Diffstat (limited to 'pym/portage/tests/repoman')
-rw-r--r-- | pym/portage/tests/repoman/test_simple.py | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/pym/portage/tests/repoman/test_simple.py b/pym/portage/tests/repoman/test_simple.py index 35290f6f3..27e7d0e6d 100644 --- a/pym/portage/tests/repoman/test_simple.py +++ b/pym/portage/tests/repoman/test_simple.py @@ -69,26 +69,11 @@ class SimpleRepomanTestCase(TestCase): licenses = ["GPL-2"] arch_list = ["x86"] metadata_dtd = os.path.join(PORTAGE_BASE_PATH, "cnf/metadata.dtd") - metadata_xml_template = """<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<herd>%(herd)s</herd> -<maintainer> -<email>maintainer-needed@gentoo.org</email> -<description>Description of the maintainership</description> -</maintainer> -<longdescription>Long description of the package</longdescription> -<use> -%(flags)s -</use> -</pkgmetadata> -""" - metadata_xml_files = ( ( "dev-libs/A", { - "herd" : "no-herd", + "herd" : "base-system", "flags" : "<flag name='flag'>Description of how USE='flag' affects this package</flag>", }, ), @@ -153,7 +138,7 @@ class SimpleRepomanTestCase(TestCase): f.write("%s - %s\n" % (k, v)) for cp, xml_data in metadata_xml_files: with open(os.path.join(portdir, cp, "metadata.xml"), 'w') as f: - f.write(metadata_xml_template % xml_data) + f.write(playground.metadata_xml_template % xml_data) # repoman checks metadata.dtd for recent CTIME, so copy the file in # order to ensure that the CTIME is current shutil.copyfile(metadata_dtd, os.path.join(distdir, "metadata.dtd")) |