# vim:fileencoding=utf-8 # (c) 2011 Michał Górny # 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