diff options
| author | zdc <zdc@users.noreply.github.com> | 2020-09-15 21:35:20 +0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-15 21:35:20 +0300 | 
| commit | 76adf82b8a4dbcf636151d292175b7d1ac182fcf (patch) | |
| tree | f57f3db085a724df237ffa64b589c6bb6dd3b28f /tests/unittests/test_handler/test_handler_bootcmd.py | |
| parent | 1a790ee102fd405e5c3a20a17a69ba0c118ed874 (diff) | |
| parent | 7cd260b313267dc7123cb99a75d4555e24909cca (diff) | |
| download | vyos-cloud-init-76adf82b8a4dbcf636151d292175b7d1ac182fcf.tar.gz vyos-cloud-init-76adf82b8a4dbcf636151d292175b7d1ac182fcf.zip | |
Merge pull request #18 from zdc/T2117-equuleus-20.3
T2117: Cloud-init updated to 20.3
Diffstat (limited to 'tests/unittests/test_handler/test_handler_bootcmd.py')
| -rw-r--r-- | tests/unittests/test_handler/test_handler_bootcmd.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/tests/unittests/test_handler/test_handler_bootcmd.py b/tests/unittests/test_handler/test_handler_bootcmd.py index a76760fa..b53d60d4 100644 --- a/tests/unittests/test_handler/test_handler_bootcmd.py +++ b/tests/unittests/test_handler/test_handler_bootcmd.py @@ -2,7 +2,7 @@  from cloudinit.config.cc_bootcmd import handle, schema  from cloudinit.sources import DataSourceNone -from cloudinit import (distros, helpers, cloud, util) +from cloudinit import (distros, helpers, cloud, subp, util)  from cloudinit.tests.helpers import (      CiTestCase, mock, SchemaTestCaseMixin, skipUnlessJsonSchema) @@ -36,7 +36,7 @@ class TestBootcmd(CiTestCase):      def setUp(self):          super(TestBootcmd, self).setUp() -        self.subp = util.subp +        self.subp = subp.subp          self.new_root = self.tmp_dir()      def _get_cloud(self, distro): @@ -130,7 +130,7 @@ class TestBootcmd(CiTestCase):          with mock.patch(self._etmpfile_path, FakeExtendedTempFile):              with self.allow_subp(['/bin/sh']): -                with self.assertRaises(util.ProcessExecutionError) as ctxt: +                with self.assertRaises(subp.ProcessExecutionError) as ctxt:                      handle('does-not-matter', valid_config, cc, LOG, [])          self.assertIn(              'Unexpected error while running command.\n' | 
