From 571db94df5ac63db42a50058357f30c435e27cc0 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 28 Nov 2018 20:27:50 +1100 Subject: rtemstoolkit: Fix mailer unittest. --- rtemstoolkit/__init__.py | 6 +++--- rtemstoolkit/mailer.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'rtemstoolkit') diff --git a/rtemstoolkit/__init__.py b/rtemstoolkit/__init__.py index 207698a..b5f0162 100644 --- a/rtemstoolkit/__init__.py +++ b/rtemstoolkit/__init__.py @@ -50,8 +50,8 @@ args = { 'config': ['--file', 'tester/rtems/version.cfg', '--jobs', 'half', '--no-clean'], - 'mailer': ['--smtp-host', '1.2.3.4', - '--mail-to', 'foo@bar.none', - '--mail-from', 'me@here.there'] + 'mailer': ['--smtp-host=1.2.3.4', + '--mail-to=foo@bar.none', + '--mail-from=me@here.there'] } diff --git a/rtemstoolkit/mailer.py b/rtemstoolkit/mailer.py index ee4d3a4..241ee1c 100644 --- a/rtemstoolkit/mailer.py +++ b/rtemstoolkit/mailer.py @@ -63,7 +63,7 @@ class mail: self.opts = opts def _args_are_macros(self): - return type(self.opts) is 'command_line' + return isinstance(self.opts, options.command_line) def _get_arg(self, arg): if self._args_are_macros(): -- cgit v1.2.3