Last active
September 25, 2019 09:13
A simple script to perform requirement check on all RDO tempest plugin packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install rdopkg | |
# $ pip install --user rdopkg | |
# Set rdopkg binary path in ~/.bashrc | |
# export PATH=$PATH:~/.local/bin/rdopkg | |
# Get the list of tempest plugin package names | |
tempest_plugins=$(rdopkg info conf:rpmfactory-tempest-plugin tags:train-uc | grep name: |cut -d":" -f2) | |
for tempest_plugin in $tempest_plugins; do | |
echo "clonning $tempest_plugin"; | |
rdopkg clone $tempest_plugin; | |
echo "performing requirement check on $tempest_plugin" | |
pushd $tempest_plugin; | |
# Check Out to rpm-master branch | |
git checkout rpm-master; | |
rdopkg reqcheck; | |
popd; | |
done | |
# Rules for updating spec files for requirements sync | |
# * If openstack package mismatch and big difference in version then update the spec file | |
# * If package version is greater in the spec then no need to change | |
# * If there is a missing package and is needed for the project then added it back. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment