[rtems-tools commit] rtemstoolkit: Fix mailer unittest.

Chris Johns chrisj at rtems.org
Wed Nov 28 18:46:19 UTC 2018


Module:    rtems-tools
Branch:    master
Commit:    571db94df5ac63db42a50058357f30c435e27cc0
Changeset: http://git.rtems.org/rtems-tools/commit/?id=571db94df5ac63db42a50058357f30c435e27cc0

Author:    Chris Johns <chrisj at rtems.org>
Date:      Wed Nov 28 20:27:50 2018 +1100

rtemstoolkit: Fix mailer unittest.

---

 rtemstoolkit/__init__.py | 6 +++---
 rtemstoolkit/mailer.py   | 2 +-
 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 at bar.none',
-               '--mail-from', 'me at here.there']
+    'mailer': ['--smtp-host=1.2.3.4',
+               '--mail-to=foo at bar.none',
+               '--mail-from=me at 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():




More information about the vc mailing list