Handle a stestr results directory
Tempest is in the process of switching the tempest run command to use stestr internally instead of testrepository. This means that results will be stored in .stestr instead of .testrepository now. This commit updates the base job tempest run post-processing to check which directory exists before attempting to copy the results dir. Change-Id: Ic1fa3a98b6bcd151c489b078028687892655a19b
This commit is contained in:
parent
03de9e0fc7
commit
d7a53e8cb0
|
@ -287,9 +287,12 @@ if [[ "$RUN_BASE" == "True" ]]; then
|
|||
tox -esmoke -- --concurrency=$TEMPEST_CONCURRENCY
|
||||
# once we are done, copy our created artifacts to the target
|
||||
if [[ -e $TARGET_RELEASE_DIR/tempest ]]; then
|
||||
for file in .tox .testrepository; do
|
||||
rsync -a $BASE_RELEASE_DIR/tempest/$file/ $TARGET_RELEASE_DIR/tempest/$file/
|
||||
done
|
||||
rsync -a $BASE_RELEASE_DIR/tempest/.tox/ $TARGET_RELEASE_DIR/tempest/.tox/
|
||||
if [[ -d $BASE_RELEASE_DIR/tempest/.testrepository ]]; then
|
||||
rsync -a $BASE_RELEASE_DIR/tempest/.testrepository/ $TARGET_RELEASE_DIR/tempest/.testrepository/
|
||||
elif [[ -d $BASE_RELEASE_DIR/tempest/.stestr ]]; then
|
||||
rsync -a $BASE_RELEASE_DIR/tempest/.stestr/ $TARGET_RELEASE_DIR/tempest/.stestr/
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
stop $STOP base-smoke 110
|
||||
|
|
Loading…
Reference in New Issue