Skip to content

Commit

Permalink
Fix grenade runs which don't use tempest
Browse files Browse the repository at this point in the history
A bug was reported for a grenade job that doesn't use tempest. Fix is to
check for existence of tempest.conf file before copying it.

Change-Id: I3a79347c8d5b84ea756e7571d0216384fbf2a05e
Closes-Bug: #1651767
  • Loading branch information
John L. Villalovos committed Dec 22, 2016
1 parent 2dfc5e7 commit 192234d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions upgrade-tempest
Expand Up @@ -78,9 +78,15 @@ if $(source $BASE_DEVSTACK_DIR/stackrc; is_service_enabled neutron); then
Q_L3_ENABLED="True"
fi

if [[ -f $BASE_RELEASE_DIR/tempest/etc/tempest.conf ]]; then
# Use the same config to target smoke tests.
cp $BASE_RELEASE_DIR/tempest/etc/tempest.conf $TARGET_RELEASE_DIR/tempest/etc/tempest.conf
else
configure_tempest
fi

install_tempest_plugins
# Use the same config to target smoke tests.
cp $BASE_RELEASE_DIR/tempest/etc/tempest.conf $TARGET_RELEASE_DIR/tempest/etc/tempest.conf

DEST=$DEST_BACKUP

set +o xtrace
Expand Down

0 comments on commit 192234d

Please sign in to comment.