Simplify ansible-test cwd setup.
This commit is contained in:
parent
9fc710f657
commit
43c3b9fb0e
1 changed files with 2 additions and 2 deletions
|
@ -21,6 +21,7 @@ from lib.util import (
|
|||
generate_pip_command,
|
||||
read_lines_without_comments,
|
||||
MAXFD,
|
||||
INSTALL_ROOT,
|
||||
)
|
||||
|
||||
from lib.delegation import (
|
||||
|
@ -86,8 +87,7 @@ import lib.cover
|
|||
def main():
|
||||
"""Main program function."""
|
||||
try:
|
||||
git_root = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', '..'))
|
||||
os.chdir(git_root)
|
||||
os.chdir(INSTALL_ROOT)
|
||||
initialize_cloud_plugins()
|
||||
sanity_init()
|
||||
args = parse_args()
|
||||
|
|
Loading…
Reference in a new issue