Handle changing working dir in upgrade tests

After SSHClient refactor now it's necessary to track current working dir

Change-Id: Ia2ebfd04ee0a77f26e2589d31978f5db8c69e064
Partial-bug:1606466
This commit is contained in:
Vladimir Khlyunev 2016-07-26 11:26:49 +03:00
parent e21c9a6099
commit ce44b247c0

View File

@ -431,12 +431,12 @@ class DataDrivenUpgradeBase(TestBasic):
"git clone https://github.com/"
"openstack/fuel-plugin-detach-database",
"cd fuel-plugin-detach-database",
"git checkout stable/{}".format(settings.UPGRADE_FUEL_FROM),
"fpb --build . ",
"cd fuel-plugin-detach-database && "
"git checkout stable/{branch} && "
"fpb --build . && "
"fuel plugins --install *.rpm "
"--user {user} --password {pwd}".format(
branch=settings.UPGRADE_FUEL_FROM,
user=settings.KEYSTONE_CREDS['username'],
pwd=settings.KEYSTONE_CREDS['password'])]