From 36f47a44495b58b58d980474218be5d3d58fba0a Mon Sep 17 00:00:00 2001 From: Mike Place Date: Fri, 28 Oct 2016 15:02:13 +0900 Subject: [PATCH] Reset dir for extend test --- tests/unit/utils/extend_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit/utils/extend_test.py b/tests/unit/utils/extend_test.py index 0662ac8bf7..f63a4896f7 100644 --- a/tests/unit/utils/extend_test.py +++ b/tests/unit/utils/extend_test.py @@ -28,12 +28,15 @@ import salt.utils class ExtendTestCase(TestCase): def setUp(self): + self.starting_dir = os.getcwd() + os.chdir(integration.CODE_DIR) self.out = None def tearDown(self): if self.out is not None: if os.path.exists(self.out): shutil.rmtree(self.out, True) + os.chdir(self.starting_dir) @patch('sys.exit', MagicMock) def test_run(self):