project-config/tools/check_gerrit_projects_changed.sh
Pranav Salunke 73afc4ef2a Delete files for proper cleanup after tests
Change-Id: I45395a062d0d329bd710b0c5ac7e5d352dacc895
2016-12-19 17:20:43 +01:00

19 lines
411 B
Bash
Executable File

#!/bin/bash -xe
GITHEAD=$(git rev-parse HEAD)
# Check out previous version
git checkout HEAD~1
cp gerrit/projects.yaml gerrit/projects-old.yaml
# Back to current version. Otherwise the
# check_gerrit_projects_changed.py invocation might be an old version.
git checkout $GITHEAD
python tools/check_gerrit_projects_changed.py gerrit/projects-old.yaml \
gerrit/projects.yaml
rm gerrit/projects-old.yaml