Skip to content

Commit

Permalink
xcpng-fs-diff.py: Exit without error if used with -r and -s only
Browse files Browse the repository at this point in the history
Don't exit displaying an error message if the script is executed with
the option -r and -s to only get and save the reference files.

Signed-off-by: Thierry Escande <[email protected]>
  • Loading branch information
tescande committed Dec 22, 2023
1 parent d7077c3 commit 19b4f6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/xcpng-fs-diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ def main():
save_reference_files(ref_files, args.save_ref)

if ref_files is None or args.test_host is None:
if args.save_ref:
return 0

print("\nMissing parameters. Try --help", file=sys.stderr)
return -1

Expand Down

0 comments on commit 19b4f6a

Please sign in to comment.