[V1] framework/dts: Regist generate ASan report action to atexit
Checks
Context |
Check |
Description |
ci/Intel-dts-suite-test |
success
|
Testing OK
|
Commit Message
Sometime, the framework does not generate ASan reports when exiting abnormally,
because the operation of generating reports is at the end of the main flow of
the framework, and there are no guarantee measures in case of abnormality. So
register the generate operation with the atexit module.
Signed-off-by: Jun Dong <junx.dong@intel.com>
---
framework/dts.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
Comments
> -----Original Message-----
> From: Dong, JunX <junx.dong@intel.com>
> Sent: 2022年4月2日 16:55
> To: dts@dpdk.org
> Cc: Tu, Lijuan <lijuan.tu@intel.com>; Sun, QingX <qingx.sun@intel.com>; Dong,
> JunX <junx.dong@intel.com>
> Subject: [dts] [PATCH V1] framework/dts: Regist generate ASan report action to
> atexit
>
> Sometime, the framework does not generate ASan reports when exiting
> abnormally, because the operation of generating reports is at the end of the
> main flow of the framework, and there are no guarantee measures in case of
> abnormality. So register the generate operation with the atexit module.
>
> Signed-off-by: Jun Dong <junx.dong@intel.com>
Acked-by: Lijuan Tu <lijuan.tu@intel.com>
Applied, thanks
@@ -559,6 +559,8 @@ def run_all(
# prepare ASan test
ASanTestProcess.test_prepare(asan, output_dir)
+ # register generate ASan report action
+ atexit.register(ASanTestProcess.test_process)
if not os.path.exists(output_dir):
os.mkdir(output_dir)
@@ -676,9 +678,6 @@ def run_all(
save_all_results()
- # process ASan test report
- ASanTestProcess.test_process()
-
def show_speedup_options_messages(read_cache, skip_setup):
if read_cache: