Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions python/py-fuzzer/fuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ def run_fuzzer(args: ResolvedCliArgs) -> ExitCode:
return ExitCode(0)


def absolute_path(p: str) -> Path:
return Path(p).absolute()


def parse_seed_argument(arg: str) -> int | range:
"""Helper for argument parsing"""
if "-" in arg:
Expand Down Expand Up @@ -337,7 +341,7 @@ def parse_args() -> ResolvedCliArgs:
"Executable to test. "
"Defaults to a fresh build of the currently checked-out branch."
),
type=Path,
type=absolute_path,
)
parser.add_argument(
"--baseline-executable",
Expand All @@ -346,7 +350,7 @@ def parse_args() -> ResolvedCliArgs:
"Defaults to whatever version is installed "
"in the Python environment."
),
type=Path,
type=absolute_path,
)
parser.add_argument(
"--bin",
Expand Down
Loading