Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15:Update
salt.15448
fix-for-temp-folder-definition-in-loader-unit-t...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-for-temp-folder-definition-in-loader-unit-test.patch of Package salt.15448
From dd01a0fc594f024eee2267bed2f698f5a6c729bf Mon Sep 17 00:00:00 2001 From: Jochen Breuer <jbreuer@suse.de> Date: Mon, 16 Mar 2020 15:25:42 +0100 Subject: [PATCH] Fix for temp folder definition in loader unit test --- tests/unit/test_loader.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/test_loader.py b/tests/unit/test_loader.py index fe11cd0681..7e369f2c3b 100644 --- a/tests/unit/test_loader.py +++ b/tests/unit/test_loader.py @@ -152,12 +152,12 @@ class LazyLoaderUtilsTest(TestCase): def setUpClass(cls): cls.opts = salt.config.minion_config(None) cls.opts['grains'] = salt.loader.grains(cls.opts) - if not os.path.isdir(TMP): - os.makedirs(TMP) + if not os.path.isdir(RUNTIME_VARS.TMP): + os.makedirs(RUNTIME_VARS.TMP) def setUp(self): # Setup the module - self.module_dir = tempfile.mkdtemp(dir=TMP) + self.module_dir = tempfile.mkdtemp(dir=RUNTIME_VARS.TMP) self.module_file = os.path.join(self.module_dir, '{}.py'.format(self.module_name)) with salt.utils.files.fopen(self.module_file, 'w') as fh: @@ -165,7 +165,7 @@ class LazyLoaderUtilsTest(TestCase): fh.flush() os.fsync(fh.fileno()) - self.utils_dir = tempfile.mkdtemp(dir=TMP) + self.utils_dir = tempfile.mkdtemp(dir=RUNTIME_VARS.TMP) self.utils_file = os.path.join(self.utils_dir, '{}.py'.format(self.utils_name)) with salt.utils.files.fopen(self.utils_file, 'w') as fh: -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor