Check for test-requirements.txt file then install
Some of the projects having tempest-plugin like aodh does not
have test-requirements.txt file which leds to the failure of
tempest-plugin-sanity job while installing test packages from
it. In order to avoid the failure we need to check for that
file then install.
# Install other tempest plugins projects
for project in $PROJECT_LIST; do
$TVENV pip install $WORKSPACE/openstack/$project
+ # Check for test-requirements.txt file in a project then install it.
+ if [[ -e $WORKSPACE/openstack/$project/test-requirements.txt ]]; then
$TVENV pip install -r $WORKSPACE/openstack/$project/test-requirements.txt
+ fi
done
# Create tempest workspace
$TVENV tempest init $WORKSPACE/tempest_sanity
