[elbe-devel] [PATCH 0/9] elbepack: directories: introduce helper to execute an elbe subcommand
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Thu Jul 25 11:47:10 CEST 2024
In contrast to the existing run_elbe() helper,
run_elbe_subcommand() executes the subcommand in the same
interpreter/process.
This has the advantage that all environment and stacktraces are
preserved.
For now this is useful for unittests but as soon as the exception-based
error handling is active it can be used throughout elbe.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
Thomas Weißschuh (9):
elbepack: validate: drop sys.exit(0) at end of command
elbepack: main: move get_cmdlist() helper
elbepack: main: allow specification of custom argv
elbepack: directories: introduce helper to execute an elbe subcommand
tests: test_preproc: migrate to run_elbe_subcommand
tests: test_validate: migrate to run_elbe_subcommand
tests: test_parselicence: migrate to run_elbe_subcommand
tests: test_cyclonedx_sbom: migrate to run_elbe_subcommand
tests: test_xml: migrate to run_elbe_subcommand
docs/conf.py | 4 +-
elbepack/commands/validate.py | 2 -
elbepack/directories.py | 14 ++++---
elbepack/main.py | 23 ++++++-----
elbepack/tests/cyclonedx/test_cyclonedx_sbom.py | 13 ++++---
elbepack/tests/test_parselicence.py | 23 ++++++-----
elbepack/tests/test_preproc.py | 6 +--
elbepack/tests/test_validate.py | 6 +--
elbepack/tests/test_xml.py | 51 ++++++++++++++-----------
9 files changed, 80 insertions(+), 62 deletions(-)
---
base-commit: 6085e245520afc3b98edcdc03349b44e47d455b3
change-id: 20240725-run_elbe-21f1466ba4ec
Best regards,
--
Thomas Weißschuh <thomas.weissschuh at linutronix.de>
More information about the elbe-devel
mailing list