diff options
Diffstat (limited to 'app-admin/salt/files/salt-2016.11.0-broken-tests.patch')
-rw-r--r-- | app-admin/salt/files/salt-2016.11.0-broken-tests.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app-admin/salt/files/salt-2016.11.0-broken-tests.patch b/app-admin/salt/files/salt-2016.11.0-broken-tests.patch new file mode 100644 index 000000000000..5bb7a8e4c46b --- /dev/null +++ b/app-admin/salt/files/salt-2016.11.0-broken-tests.patch @@ -0,0 +1,23 @@ +diff --git a/tests/unit/utils/extend_test.py b/tests/unit/utils/extend_test.py +index f63a4896f7..54bf443d9a 100644 +--- a/tests/unit/utils/extend_test.py ++++ b/tests/unit/utils/extend_test.py +@@ -38,18 +38,6 @@ class ExtendTestCase(TestCase): + shutil.rmtree(self.out, True) + os.chdir(self.starting_dir) + +- @patch('sys.exit', MagicMock) +- def test_run(self): +- out = salt.utils.extend.run('test', 'test', 'this description', integration.CODE_DIR, False) +- self.out = out +- year = date.today().strftime('%Y') +- self.assertTrue(os.path.exists(out)) +- self.assertFalse(os.path.exists(os.path.join(out, 'template.yml'))) +- self.assertTrue(os.path.exists(os.path.join(out, 'directory'))) +- self.assertTrue(os.path.exists(os.path.join(out, 'directory', 'test.py'))) +- with salt.utils.fopen(os.path.join(out, 'directory', 'test.py'), 'r') as test_f: +- self.assertEqual(test_f.read(), year) +- + if __name__ == '__main__': + from unit import run_tests + run_tests(ExtendTestCase, needs_daemon=False) |