vmtest: enable logging when running vmtest.vm CLI

Specifically, we want logs from vmtest.download.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
This commit is contained in:
Omar Sandoval 2021-12-21 14:34:45 -08:00
parent 6732148a11
commit 92f25e2974

View File

@ -279,6 +279,11 @@ def run_in_vm(command: str, kernel_dir: Path, build_dir: Path) -> int:
if __name__ == "__main__":
import argparse
import logging
logging.basicConfig(
format="%(asctime)s:%(levelname)s:%(name)s:%(message)s", level=logging.INFO
)
parser = argparse.ArgumentParser(
description="run vmtest virtual machine",