Capture script stdout and stderr. Log outputs when script fails.
Do not log exception unless script cannot run.
Closes-bug: 1989742
TCs:
1. No log for execution succeed
2. script output is logged when script fails
3. exception is logged when script not executed (e.g, file not
found, etc)
Signed-off-by: Bin Qian <email address hidden>
Change-Id: I9c5e01e0937db02624f8c4b9bff5ccb2fae73249
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/857934 /opendev. org/starlingx/ config/ commit/ b6cc163bc617c8d 41b090268b5f0ab c9ac114d9e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit b6cc163bc617c8d 41b090268b5f0ab c9ac114d9e
Author: Bin Qian <email address hidden>
Date: Thu Sep 15 14:41:54 2022 +0000
Log data migration script output when failure
Capture script stdout and stderr. Log outputs when script fails.
Do not log exception unless script cannot run.
Closes-bug: 1989742
TCs:
1. No log for execution succeed
2. script output is logged when script fails
3. exception is logged when script not executed (e.g, file not
found, etc)
Signed-off-by: Bin Qian <email address hidden> 2624f8c4b9bff5c cb2fae73249
Change-Id: I9c5e01e0937db0