[elbe-devel] [PATCH 3/5] elbepack: initvm: reduce output spam when running make

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Aug 20 11:52:13 CEST 2024


The output from the make command is not useful to the user.
Instead swallow the output by default and provide a status message.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/initvm.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/elbepack/initvm.py b/elbepack/initvm.py
index 2a1a2e61a4b0..fa7e6168b605 100644
--- a/elbepack/initvm.py
+++ b/elbepack/initvm.py
@@ -63,8 +63,9 @@ def _run_and_detach(*args, **kwargs):
 
 
 def _build_initvm(directory):
+    print('Build initvm')
     try:
-        subprocess.run(['make'], cwd=directory, check=True)
+        subprocess.run(['make'], cwd=directory, check=True, capture_output=True)
     except subprocess.CalledProcessError as e:
         raise with_cli_details(e, 147, 'Building the initvm failed')
 

-- 
2.46.0



More information about the elbe-devel mailing list