From d29edf503b2ff191a4a8dfcf1da2f2b56bf514e7 Mon Sep 17 00:00:00 2001 From: "Thing-han, Lim" <15379156+potsrevennil@users.noreply.github.com> Date: Mon, 17 Jun 2024 14:53:54 +0800 Subject: [PATCH] output full executed make command Signed-off-by: Thing-han, Lim <15379156+potsrevennil@users.noreply.github.com> --- scripts/tests | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/tests b/scripts/tests index 760270ccf..cbebb234c 100755 --- a/scripts/tests +++ b/scripts/tests @@ -29,8 +29,11 @@ def base_run(bin, force_qemu, verbose): if force_qemu or (platform.system() == "Linux" and platform.machine() == "x86_64"): logging.debug(f"Emulating {bin} with QEMU") + args = ["make", "CROSS_PREFIX=aarch64-none-linux-gnu-", f"{bin}"], + logging.info(' '.join(args)) + p = subprocess.run( - ["make", "CROSS_PREFIX=aarch64-none-linux-gnu-", f"{bin}"], + args, stdout=subprocess.DEVNULL if not verbose else None, ) if p.returncode != 0: @@ -46,10 +49,14 @@ def base_run(bin, force_qemu, verbose): else: logging.debug(f"Running {bin} natively") + args = ["make", f"{bin}"] + logging.info(' '.join(args)) + p = subprocess.run( - ["make", f"{bin}"], + args, stdout=subprocess.DEVNULL if not verbose else None, ) + if p.returncode != 0: logging.error("make failed") sys.exit(1)