Skip to content

Instantly share code, notes, and snippets.

@raukadah
Last active September 25, 2019 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raukadah/a0554646117fd6e76706663b4a12079f to your computer and use it in GitHub Desktop.
Save raukadah/a0554646117fd6e76706663b4a12079f to your computer and use it in GitHub Desktop.
A simple script to perform requirement check on all RDO tempest plugin packages
#!/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