Add back $WORKSPACE/logs directory creation

This is required to exist by the following line where we write
the fake subunit file. This works in CI because the directory is
created already, but fails in a reproducer environment. It seems
fine to just ensure this exists here.

Closes-Bug: #1778974
Change-Id: I8f03c14f1636a33162c8ea904714f6154ec3623a
This commit is contained in:
trown 2018-06-27 15:01:52 -04:00
parent 67826ec816
commit c605fd193f
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ fi
export NODEPOOL_PROVIDER=${NODEPOOL_PROVIDER:-""}
# 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