Create pre-generated fake subunit file

Return subnit file for tracking all failed jobs in openstack health
system, even if they didn't reach step of running tempest tests.

Change-Id: If6709390aa5f10d94e7be86e5cc3a5ab4236f472
This commit is contained in:
Sagi Shnaidman 2017-11-26 15:22:24 +02:00
parent 6bfb25eae0
commit 2dc251f965
2 changed files with 3 additions and 0 deletions

BIN
scripts/fake_fail_subunit Normal file

Binary file not shown.

View File

@ -60,6 +60,9 @@ fi
# create logs dir (check if collect-logs doesn't already do this)
mkdir -p $WORKSPACE/logs
# Set job as failed until it's overwritten by pingtest/tempest real test subunit
cat $TRIPLEO_ROOT/tripleo-ci/scripts/fake_fail_subunit | gzip - > $WORKSPACE/logs/testrepository.subunit.gz
# Remove epel, either by epel-release, or unpackaged repo files
rpm -q epel-release && sudo yum -y erase epel-release
sudo rm -f /etc/yum.repos.d/epel*