From c7b5fccb9e54dfb91607be3f8f3bd09491269ab8 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Tue, 28 Jul 2015 12:22:53 +0100 Subject: [PATCH] Change cwd back to Salt's code dir --- tests/unit/utils/cloud_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/utils/cloud_test.py b/tests/unit/utils/cloud_test.py index 825d90afa5..1bdd26e08f 100644 --- a/tests/unit/utils/cloud_test.py +++ b/tests/unit/utils/cloud_test.py @@ -20,7 +20,7 @@ ensure_in_syspath('../../') # Import salt libs from salt.utils import cloud -from integration import TMP +from integration import TMP, CODE_DIR GPG_KEYDIR = os.path.join(TMP, 'gpg-keydir') @@ -63,6 +63,8 @@ try: except ImportError: HAS_KEYRING = False +os.chdir(CODE_DIR) + class CloudUtilsTestCase(TestCase):