gen_exit_function: set ignore_err to 1
ignore_err influences the way shell_cmd processes errors. Since we're
doing exit processing, we don't want to stop the program due to a
shell_cmd failure.
Change-Id: Ib4833707461b77bb3fe0ee4d907fb36f431770b7
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/gen_arg.py b/lib/gen_arg.py
index 529cd97..dac4078 100755
--- a/lib/gen_arg.py
+++ b/lib/gen_arg.py
@@ -208,6 +208,10 @@
gp.dprint_executing()
gp.dprint_var(signal_number)
+ # ignore_err influences the way shell_cmd processes errors. Since we're doing exit processing, we don't
+ # want to stop the program due to a shell_cmd failure.
+ ignore_err = 1
+
# Call the main module's exit_function if it is defined.
exit_function = getattr(module, "exit_function", None)
if exit_function: