From ce44b247c015a049978d4066bff05efa47efec8a Mon Sep 17 00:00:00 2001 From: Vladimir Khlyunev Date: Tue, 26 Jul 2016 11:26:49 +0300 Subject: [PATCH] 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 --- .../tests/tests_upgrade/test_data_driven_upgrade_base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fuelweb_test/tests/tests_upgrade/test_data_driven_upgrade_base.py b/fuelweb_test/tests/tests_upgrade/test_data_driven_upgrade_base.py index 4427bb258..ecc6ae4d3 100644 --- a/fuelweb_test/tests/tests_upgrade/test_data_driven_upgrade_base.py +++ b/fuelweb_test/tests/tests_upgrade/test_data_driven_upgrade_base.py @@ -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'])]