aboutsummaryrefslogtreecommitdiff
blob: 94a93cc2174f7c83d9bc1584b48b20cdb3b6e6d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#	vim:fileencoding=utf-8
# (c) 2011 Michał Górny <mgorny@gentoo.org>
# Released under the terms of the 2-clause BSD license.

from .dbus_case import DBusEbuildTestCase

class DBusFetchingEbuildTestCase(DBusEbuildTestCase):
	"""
	A DBusEbuildTestCase variant with a standarized way of fetching
	sources -- to decrease {${DISTDIR}} pollution.
	"""

	def __init__(self, *args, **kwargs):
		DBusEbuildTestCase.__init__(self, *args, **kwargs)
		val = 'http://dev.gentoo.org/~mgorny/pmsts-temp.bin'
		if 'SRC_URI' in self.ebuild_vars:
			val = '%s %s' % (self.ebuild_vars['SRC_URI'], val)
		self.ebuild_vars['SRC_URI'] = val