mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +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(
|
parser.add_argument(
|
||||||
"-p", "--pin", help="Unlock PIN", type=str, default='a'
|
"-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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
numeric_level = getattr(logging, args.loglevel.upper(), None)
|
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):
|
if not isinstance(numeric_level, int):
|
||||||
raise ValueError('Invalid log level: %s' % args.loglevel)
|
raise ValueError('Invalid log level: %s' % args.loglevel)
|
||||||
logging.basicConfig(level=numeric_level)
|
logging.basicConfig(level=numeric_level)
|
||||||
|
|
||||||
|
set_ci_tests_flag(args.ci)
|
||||||
|
|
||||||
if args.renode is True:
|
if args.renode is True:
|
||||||
keyfile = "./emulation/renode-keybox.bin"
|
keyfile = "./emulation/renode-keybox.bin"
|
||||||
|
|
@ -167,7 +175,7 @@ def main():
|
||||||
#logging.info("listing {} keys".format(len(d2.keys)))
|
#logging.info("listing {} keys".format(len(d2.keys)))
|
||||||
#for key in d2.keys:
|
#for key in d2.keys:
|
||||||
# logging.info("{}".format(key))
|
# logging.info("{}".format(key))
|
||||||
if args.dump == False:
|
if args.ci == True:
|
||||||
logging.info("CI checks:")
|
logging.info("CI checks:")
|
||||||
for bdict in basis_dicts.values():
|
for bdict in basis_dicts.values():
|
||||||
bdict.ci_check()
|
bdict.ci_check()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue