mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/OutputCheck: fix Driver
remove deprecated open 'U' option Closes: https://bugs.gentoo.org/891035 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -20,6 +20,8 @@ RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="test? ( dev-python/lit[${PYTHON_USEDEP}] )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-Driver.patch )
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
@@ -33,5 +35,5 @@ src_prepare() {
|
||||
}
|
||||
|
||||
python_test() {
|
||||
lit "${S}"/tests || die "running test with ${EPYTHON} failed"
|
||||
lit --verbose "${S}"/tests || die "running test with ${EPYTHON} failed"
|
||||
}
|
||||
11
dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch
Normal file
11
dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/OutputCheck/Driver.py
|
||||
+++ b/OutputCheck/Driver.py
|
||||
@@ -34,7 +34,7 @@ ExitCode = enum('SUCCESS',
|
||||
|
||||
def main(args):
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
- parser.add_argument('check_file', type=argparse.FileType('rU'), help='File containing check commands')
|
||||
+ parser.add_argument('check_file', type=argparse.FileType('r'), help='File containing check commands')
|
||||
parser.add_argument('--file-to-check=', type=argparse.FileType('r'), default='-', help='File to check (default %(default)s)')
|
||||
parser.add_argument('--check-prefix=', default='CHECK', help='Prefix to use from check_file')
|
||||
parser.add_argument("-l","--log-level",type=str, default="INFO", choices=['debug','info','warning','error'])
|
||||
Reference in New Issue
Block a user