PTU5KAS/tests
Felix Moessbauer ecd670e9ae fix: collect exceptions on task errors
When async tasks fail, all exceptions need to be collected to not get
subsequent exceptions about invalid future states. This is achieved by
gathering the task results, instead of just waiting for them. By
gathering the results, also user-requested cancellation (e.g. via
ctrl-c) works without throwing tons of additional exceptions.
Since ac437308 we more likely run into that case, which unvealed the bug.

By properly handling the exception, a TaskResultError is returned
instead of the underlying CommandExecError. This change is reflected in
the corresponding unit test.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2023-05-19 06:36:31 +02:00
..
test_build_system tests: Stress the build_system property 2020-11-16 11:53:29 +01:00
test_commands test handling of command exec errors 2023-05-10 09:02:53 +02:00
test_environment_variables tests: Add test case for environment variables 2022-11-11 13:35:45 +01:00
test_layers repos: strip dot from layer name 2021-05-05 15:43:58 +02:00
test_menu tests: Add basic tests for menu plugin 2021-10-09 15:02:22 +02:00
test_patch tests: Check patches can still be applied after switching refspec 2020-06-15 19:53:59 +02:00
test_refspec fix: Raise an error if no refspec is provided 2022-02-21 20:05:31 +01:00
test_repo_includes add test for resolve-env option in dump plugin 2022-12-13 14:41:00 +01:00
conftest.py tests: Extract common changedir fixture 2020-11-13 21:00:35 +01:00
test_build_system.py tests: Clean up remaining temporary directory setups 2023-02-12 13:55:23 +01:00
test_commands.py fix: collect exceptions on task errors 2023-05-19 06:36:31 +02:00
test_environment_variables.py tests: Clean up remaining temporary directory setups 2023-02-12 13:55:23 +01:00
test_includehandler.py tests: Add include test case for multiple files in sub-dirs 2021-08-19 10:10:26 +02:00
test_layers.py tests: Clean up remaining temporary directory setups 2023-02-12 13:55:23 +01:00
test_menu.py tests: Clean up remaining temporary directory setups 2023-02-12 13:55:23 +01:00
test_patch.py tests: Clean up remaining temporary directory setups 2023-02-12 13:55:23 +01:00
test_refspec.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00