qapi/error: Check format string argument in error_*prepend()
[qemu/armbru.git] / tests / qemu-iotests / 297
blob5c5420712b16e1001bec19d22cd754d4452d32c5
1 #!/usr/bin/env bash
3 # Copyright (C) 2020 Red Hat, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 seq=$(basename $0)
19 echo "QA output created by $seq"
21 status=1 # failure is the default!
23 # get standard environment
24 . ./common.rc
26 if ! type -p "pylint-3" > /dev/null; then
27 _notrun "pylint-3 not found"
29 if ! type -p "mypy" > /dev/null; then
30 _notrun "mypy not found"
33 pylint-3 --score=n iotests.py
35 MYPYPATH=../../python/ mypy --warn-unused-configs --disallow-subclassing-any \
36 --disallow-any-generics --disallow-incomplete-defs \
37 --disallow-untyped-decorators --no-implicit-optional \
38 --warn-redundant-casts --warn-unused-ignores \
39 --no-implicit-reexport iotests.py
41 # success, all done
42 echo "*** done"
43 rm -f $seq.full
44 status=0