ci/b2c: assert that install folder is present whether or not the tarball was extracted
authorEric Engestrom <eric@igalia.com>
Thu, 31 Aug 2023 12:39:41 +0000 (13:39 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 31 Aug 2023 17:18:22 +0000 (17:18 +0000)
We already `rm -rf install` at the beginning so it can't be a stale install folder.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24970>

.gitlab-ci/test/gitlab-ci.yml

index 1bab88c..730449e 100644 (file)
@@ -337,7 +337,7 @@ clang-format:
       [ -d "$CI_COMMON_SCRIPTS" ] || exit 1
 
 
-      B2C_TEST_SCRIPT="bash -euc 'if [ -f ${INSTALL_TARBALL_NAME} ]; then tar xf ${INSTALL_TARBALL_NAME} && rm ${INSTALL_TARBALL_NAME}; fi; ./install/common/init-stage2.sh'"
+      B2C_TEST_SCRIPT="bash -euc 'if [ -f ${INSTALL_TARBALL_NAME} ]; then tar xf ${INSTALL_TARBALL_NAME} && rm ${INSTALL_TARBALL_NAME}; fi; [ -d install/ ]; ./install/common/init-stage2.sh'"
 
       # The Valve CI gateway receives jobs in a YAML format. Create a
       # job description from the CI environment.