diff options
Diffstat (limited to 'app-admin/salt/files/salt-2016.11.0-remove-file-tree-test.patch')
-rw-r--r-- | app-admin/salt/files/salt-2016.11.0-remove-file-tree-test.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app-admin/salt/files/salt-2016.11.0-remove-file-tree-test.patch b/app-admin/salt/files/salt-2016.11.0-remove-file-tree-test.patch deleted file mode 100644 index 47d3257df671..000000000000 --- a/app-admin/salt/files/salt-2016.11.0-remove-file-tree-test.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff --git a/tests/unit/modules/inspect_collector_test.py b/tests/unit/modules/inspect_collector_test.py -index 9105670526..e077bc3f44 100644 ---- a/tests/unit/modules/inspect_collector_test.py -+++ b/tests/unit/modules/inspect_collector_test.py -@@ -52,29 +52,6 @@ class InspectorCollectorTestCase(TestCase): - self.assertEqual(inspector.pidfile, '/foo/pid/bar.pid') - - @patch("os.mkdir", MagicMock()) -- def test_file_tree(self): -- ''' -- Test file tree. -- -- :return: -- ''' -- -- inspector = Inspector(cachedir='/test', piddir='/test', pidfilename='bar.pid') -- tree_root = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'inspectlib', 'tree_test') -- expected_tree = (['/a/a/dummy.a', '/a/b/dummy.b', '/b/b.1', '/b/b.2', '/b/b.3'], -- ['/a', '/a/a', '/a/b', '/a/c', '/b', '/c'], -- ['/a/a/dummy.ln.a', '/a/b/dummy.ln.b', '/a/c/b.1', '/b/b.4', -- '/b/b.5', '/c/b.1', '/c/b.2', '/c/b.3']) -- tree_result = [] -- for chunk in inspector._get_all_files(tree_root): -- buff = [] -- for pth in chunk: -- buff.append(pth.replace(tree_root, '')) -- tree_result.append(buff) -- tree_result = tuple(tree_result) -- self.assertEqual(expected_tree, tree_result) -- -- @patch("os.mkdir", MagicMock()) - def test_get_unmanaged_files(self): - ''' - Test get_unmanaged_files. |