mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Updated integration.shell.syndic
test suite to use salttesting.helpers.ensure_in_syspath()
This commit is contained in:
parent
63caaf8c6e
commit
5a64ba438e
1 changed files with 4 additions and 15 deletions
|
@ -8,23 +8,12 @@
|
|||
:license: Apache 2.0, see LICENSE for more details.
|
||||
'''
|
||||
|
||||
# Import python libs
|
||||
import sys
|
||||
# Import Salt Testing libs
|
||||
from salttesting.helpers import ensure_in_syspath
|
||||
ensure_in_syspath('../../')
|
||||
|
||||
# Import salt libs
|
||||
try:
|
||||
import integration
|
||||
except ImportError:
|
||||
if __name__ == '__main__':
|
||||
import os
|
||||
sys.path.insert(
|
||||
0, os.path.abspath(
|
||||
os.path.join(
|
||||
os.path.dirname(__file__), '../../'
|
||||
)
|
||||
)
|
||||
)
|
||||
import integration
|
||||
import integration
|
||||
|
||||
|
||||
class SyndicTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
||||
|
|
Loading…
Add table
Reference in a new issue