From ebc0739beeb5e01215d6eebede8068101d0daa0a Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 1 Nov 2022 21:25:04 +0800 Subject: [PATCH] fix some defaults to make the Renode path cleaner to start --- tools/pddbdbg.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/pddbdbg.py b/tools/pddbdbg.py index 03b7e8b27..21928983a 100755 --- a/tools/pddbdbg.py +++ b/tools/pddbdbg.py @@ -25,13 +25,21 @@ def main(): parser.add_argument( "-p", "--pin", help="Unlock PIN", type=str, default='a' ) + parser.add_argument( + "--ci", help="Run in CI test mode. Requires all keys to have a specific checksum structure for automated checking.", action="store_true" + ) args = parser.parse_args() numeric_level = getattr(logging, args.loglevel.upper(), None) + if args.dump: + numeric_level = getattr(logging, 'DEBUG', None) + else: + numeric_level = getattr(logging, args.loglevel.upper(), None) if not isinstance(numeric_level, int): raise ValueError('Invalid log level: %s' % args.loglevel) logging.basicConfig(level=numeric_level) + set_ci_tests_flag(args.ci) if args.renode is True: keyfile = "./emulation/renode-keybox.bin" @@ -167,7 +175,7 @@ def main(): #logging.info("listing {} keys".format(len(d2.keys))) #for key in d2.keys: # logging.info("{}".format(key)) - if args.dump == False: + if args.ci == True: logging.info("CI checks:") for bdict in basis_dicts.values(): bdict.ci_check()