Skip to content

Commit ebc0739

Browse files
committedNov 1, 2022
fix some defaults to make the Renode path cleaner to start
1 parent f738781 commit ebc0739

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎tools/pddbdbg.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,21 @@ def main():
2525
parser.add_argument(
2626
"-p", "--pin", help="Unlock PIN", type=str, default='a'
2727
)
28+
parser.add_argument(
29+
"--ci", help="Run in CI test mode. Requires all keys to have a specific checksum structure for automated checking.", action="store_true"
30+
)
2831
args = parser.parse_args()
2932

3033
numeric_level = getattr(logging, args.loglevel.upper(), None)
34+
if args.dump:
35+
numeric_level = getattr(logging, 'DEBUG', None)
36+
else:
37+
numeric_level = getattr(logging, args.loglevel.upper(), None)
3138
if not isinstance(numeric_level, int):
3239
raise ValueError('Invalid log level: %s' % args.loglevel)
3340
logging.basicConfig(level=numeric_level)
3441

42+
set_ci_tests_flag(args.ci)
3543

3644
if args.renode is True:
3745
keyfile = "./emulation/renode-keybox.bin"
@@ -167,7 +175,7 @@ def main():
167175
#logging.info("listing {} keys".format(len(d2.keys)))
168176
#for key in d2.keys:
169177
# logging.info("{}".format(key))
170-
if args.dump == False:
178+
if args.ci == True:
171179
logging.info("CI checks:")
172180
for bdict in basis_dicts.values():
173181
bdict.ci_check()

0 commit comments

Comments
 (0)
Please sign in to comment.