mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Updated integration.states.host
test suite to use salttesting.helpers.ensure_in_syspath()
This commit is contained in:
parent
415c3560e2
commit
c92568da9e
@ -6,20 +6,12 @@ tests for host state
|
||||
import os
|
||||
import shutil
|
||||
|
||||
# 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 sys
|
||||
sys.path.insert(
|
||||
0, os.path.abspath(
|
||||
os.path.join(
|
||||
os.path.dirname(__file__), '../../'
|
||||
)
|
||||
)
|
||||
)
|
||||
import integration
|
||||
import integration
|
||||
import salt.utils
|
||||
|
||||
HFILE = os.path.join(integration.TMP, 'hosts')
|
||||
|
Loading…
Reference in New Issue
Block a user