Don't remove tempest tests from installation folder
Change-Id: I44155371b8a09a84db1a023d5dfc18068d311a64
This commit is contained in:
parent
5cfcbda66c
commit
ffbe2a1056
@ -156,11 +156,15 @@ ONBUILD RUN \
|
|||||||
/tmp/* \
|
/tmp/* \
|
||||||
/var/cache/apk/* \
|
/var/cache/apk/* \
|
||||||
/var/log/* && \
|
/var/log/* && \
|
||||||
# Remove all Python pyc and pyo files.
|
# Remove all Python pyc and pyo files. Don't remove tempest tests.
|
||||||
find /usr/local -depth \
|
find /usr/local -depth \
|
||||||
\( \
|
\( \
|
||||||
\( -type d -a \( -name test -o -name tests \) \) \
|
\( -type d -and \( \
|
||||||
-o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
|
-name test -or -name tests \
|
||||||
|
-not -path '*/monasca_tempest_tests/*' \) \) \
|
||||||
|
-or \
|
||||||
|
\( -type f -and \( \
|
||||||
|
-name '*.pyc' -or -name '*.pyo' \) \) \
|
||||||
\) -exec rm -rf '{}' +
|
\) -exec rm -rf '{}' +
|
||||||
|
|
||||||
ONBUILD HEALTHCHECK --interval=5s --timeout=2s \
|
ONBUILD HEALTHCHECK --interval=5s --timeout=2s \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user