mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 18:55:37 +00:00
Check that the report directory is a directory
This commit is contained in:
parent
f1d272d0ca
commit
03625fe311
|
@ -48,7 +48,7 @@ class AbiChecker(object):
|
||||||
self._setup_logger()
|
self._setup_logger()
|
||||||
self.report_dir = os.path.abspath(configuration.report_dir)
|
self.report_dir = os.path.abspath(configuration.report_dir)
|
||||||
self.keep_all_reports = configuration.keep_all_reports
|
self.keep_all_reports = configuration.keep_all_reports
|
||||||
self.can_remove_report_dir = not (os.path.isdir(self.report_dir) or
|
self.can_remove_report_dir = not (os.path.exists(self.report_dir) or
|
||||||
self.keep_all_reports)
|
self.keep_all_reports)
|
||||||
self.old_version = old_version
|
self.old_version = old_version
|
||||||
self.new_version = new_version
|
self.new_version = new_version
|
||||||
|
@ -397,6 +397,9 @@ def run_main():
|
||||||
help="output only the list of issues to stdout, instead of a full report",
|
help="output only the list of issues to stdout, instead of a full report",
|
||||||
)
|
)
|
||||||
abi_args = parser.parse_args()
|
abi_args = parser.parse_args()
|
||||||
|
if os.path.isfile(abi_args.report_dir):
|
||||||
|
print("Error: {} is not a directory".format(abi_args.report_dir))
|
||||||
|
parser.exit()
|
||||||
old_version = SimpleNamespace(
|
old_version = SimpleNamespace(
|
||||||
version="old",
|
version="old",
|
||||||
repository=abi_args.old_repo,
|
repository=abi_args.old_repo,
|
||||||
|
|
Loading…
Reference in a new issue