scripts/coverage.py: check that --path is a directory

To detect a bad --path that would fail coverage generation early.
This commit is contained in:
Botond Dénes
2021-05-28 11:01:38 +03:00
committed by Avi Kivity
parent ca91fd0e34
commit 438391b4cc

View File

@@ -234,6 +234,9 @@ def main(argv):
args = arg_parser.parse_args(argv_head)
if not os.path.isdir(args.path):
arg_parser.exit(2, f"Error: invalid value for `--path`: path '{args.path}' doesn't exists or is not a directory\n")
if args.run:
run(argv_tail, args.executable, args.distinct_id)
if args.name.is_default: