exists
getcfg
Search the list of arguments for a valid ini-file for pytest, and return a tuple of (rootdir, inifile, cfg-dict).
note: config is optional and used only to issue warnings explicitly (#2891).
get_common_ancestor
get_dirs_from_args
determine_setup