diff --git a/avocado/plugins/wrapper.py b/avocado/plugins/wrapper.py index 708c9a1fa9a21d157d0d36dcaa4e8ad95488b082..eedcc93e966725e44e1815a325da89ed125cd7f5 100644 --- a/avocado/plugins/wrapper.py +++ b/avocado/plugins/wrapper.py @@ -48,9 +48,10 @@ class Wrapper(CLI): 'only one global wrapper can be defined.') def run(self, args): - if 'wrapper' in args: + wraps = getattr(args, "wrapper", None) + if wraps: view = output.View(app_args=args) - if 'gdb_run_bin' in args and args.gdb_run_bin: + if getattr(args, 'gdb_run_bin', None): view.notify(event='error', msg='Command line option --wrapper is incompatible' ' with option --gdb-run-bin.')