mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-04 04:27:34 +00:00
fix some defaults to make the Renode path cleaner to start
This commit is contained in:
parent
f738781a40
commit
ebc0739bee
1 changed files with 9 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue