sanitycheck: fix early messages

When managing build artifacts the logger hasn't been
initialized. Use print() here instead.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-01-02 19:31:20 -08:00 committed by Anas Nashif
commit 2d8d4c5562

View file

@ -3918,12 +3918,12 @@ def main():
# Cleanup
if options.no_clean or options.only_failed or options.test_only:
if os.path.exists(options.outdir):
logger.info("Keeping artifacts untouched")
print("Keeping artifacts untouched")
elif os.path.exists(options.outdir):
for i in range(1, 100):
new_out = options.outdir + ".{}".format(i)
if not os.path.exists(new_out):
logger.info("Renaming output directory to {}".format(new_out))
print("Renaming output directory to {}".format(new_out))
shutil.move(options.outdir, new_out)
break