summaryrefslogtreecommitdiff
path: root/rtemstoolkit
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-11-28 20:27:50 +1100
committerChris Johns <chrisj@rtems.org>2018-11-28 20:27:50 +1100
commit571db94df5ac63db42a50058357f30c435e27cc0 (patch)
tree5d6376ab4a6de2d00ab0cc05756b96a503567f0f /rtemstoolkit
parent97dc555efa44a6d5ae48d5a3f7cf2f08d5ed7e0c (diff)
rtemstoolkit: Fix mailer unittest.
Diffstat (limited to 'rtemstoolkit')
-rw-r--r--rtemstoolkit/__init__.py6
-rw-r--r--rtemstoolkit/mailer.py2
2 files changed, 4 insertions, 4 deletions
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():