@ -43,7 +43,8 @@ from . import environment
from . import mlog
from . import mlog
from . coredata import major_versions_differ , MesonVersionMismatchException
from . coredata import major_versions_differ , MesonVersionMismatchException
from . coredata import version as coredata_version
from . coredata import version as coredata_version
from . mesonlib import MesonException , OrderedSet , get_wine_shortpath , split_args , join_args
from . mesonlib import ( MesonException , OrderedSet , RealPathAction ,
get_wine_shortpath , join_args , split_args )
from . mintro import get_infodir , load_info_file
from . mintro import get_infodir , load_info_file
from . programs import ExternalProgram
from . programs import ExternalProgram
from . backend . backends import TestProtocol , TestSerialisation
from . backend . backends import TestProtocol , TestSerialisation
@ -104,7 +105,7 @@ def add_arguments(parser: argparse.ArgumentParser) -> None:
help = ' List available tests. ' )
help = ' List available tests. ' )
parser . add_argument ( ' --wrapper ' , default = None , dest = ' wrapper ' , type = split_args ,
parser . add_argument ( ' --wrapper ' , default = None , dest = ' wrapper ' , type = split_args ,
help = ' wrapper to run tests with (e.g. Valgrind) ' )
help = ' wrapper to run tests with (e.g. Valgrind) ' )
parser . add_argument ( ' -C ' , default = ' . ' , de st = ' wd ' ,
parser . add_argument ( ' -C ' , dest = ' wd ' , action = RealPathAction ,
# https://github.com/python/typeshed/issues/3107
# https://github.com/python/typeshed/issues/3107
# https://github.com/python/mypy/issues/7177
# https://github.com/python/mypy/issues/7177
type = os . path . abspath , # type: ignore
type = os . path . abspath , # type: ignore