tempest/tools/config/check_uptodate.sh
Matthew Treinish 6eb0585f70 Improve the UX around sample config generation
This commit just adds some documentation around using the sample config
generator. It also adds a wrapper script that sets the env variable for
running the oslo generator script with tempest.

Change-Id: I860b17defeeb85174e68b1e8b046b0e43c30683b
2013-11-26 15:47:52 +00:00

11 lines
281 B
Bash
Executable File

#!/bin/sh
TEMPDIR=`mktemp -d`
CFGFILE=tempest.conf.sample
tools/config/generate_sample.sh -b ./ -p tempest -o $TEMPDIR
if ! diff $TEMPDIR/$CFGFILE etc/$CFGFILE
then
echo "E: tempest.conf.sample is not up to date, please run:"
echo "tools/generate_sample.sh"
exit 42
fi