mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Move inspectlib tests to conform with naming convention
This commit is contained in:
parent
81e38239fe
commit
fa76cb6ada
4 changed files with 6 additions and 2 deletions
|
@ -78,7 +78,10 @@ def no_symlinks():
|
|||
return not HAS_SYMLINKS
|
||||
output = ''
|
||||
try:
|
||||
output = subprocess.check_output('git config --get core.symlinks', shell=True)
|
||||
output = subprocess.Popen(
|
||||
['git', 'config', '--get', 'core.symlinks'],
|
||||
cwd=TMP,
|
||||
stdout=subprocess.PIPE).communicate()[0]
|
||||
except OSError as exc:
|
||||
if exc.errno != errno.ENOENT:
|
||||
raise
|
||||
|
|
1
tests/unit/modules/inspectlib/__init__.py
Normal file
1
tests/unit/modules/inspectlib/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
# -*- coding: utf-8 -*-
|
|
@ -71,7 +71,7 @@ class InspectorCollectorTestCase(TestCase):
|
|||
inspector = Inspector(cachedir=os.sep + 'test',
|
||||
piddir=os.sep + 'test',
|
||||
pidfilename='bar.pid')
|
||||
tree_root = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'inspectlib', 'tree_test')
|
||||
tree_root = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tree_test')
|
||||
expected_tree = ([os.sep + os.sep.join(['a', 'a', 'dummy.a']),
|
||||
os.sep + os.sep.join(['a', 'b', 'dummy.b']),
|
||||
os.sep + os.sep.join(['b', 'b.1']),
|
Loading…
Add table
Reference in a new issue