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

from pmstestsuite.library.standard.dbus_case import DBusEbuildTestCase

class DoInsFailureTest(DBusEbuildTestCase):
	""" doins() failure handling test. """

	supported_eapis = (range(0, 4), (4,))

	phase_funcs = {
		'src_install': [
			'doins testzor',
			'[[ ${?} -ne 0 ]] || die "doins exitcode = 0!"'
		]
	}

	def __init__(self, *args, **kwargs):
		DBusEbuildTestCase.__init__(self, *args, **kwargs)
		self.expect_failure = (self.eapi == 4)