blob: a965377dc6980a65bba4683d51ee84b829fcec74 (
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 .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)
|