gitlab-ci: avoid clean step in "run-test.sh" for manual invocation

When we run `NM_TEST_SELECT_RUN=x ./.gitlab-ci/run-test.sh` to run one
step only, we should not do the final clean, so that the build artifacts
are preserved.
This commit is contained in:
Thomas Haller 2023-01-19 13:59:12 +01:00
parent 8ec69afd8b
commit 1e883ab6e6
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -116,17 +116,18 @@ fi
###############################################################################
do_clean
if [ "$NM_BUILD_TARBALL" = 1 ]; then
if check_run 1 ; then
mv "$ARTIFACT_DIR/docs-html/" ./
fi
if check_run 8 ; then
mv \
"$ARTIFACT_DIR"/NetworkManager-1*.tar.xz \
"$ARTIFACT_DIR"/NetworkManager-1*.src.rpm \
./
if [ -z "$NM_TEST_SELECT_RUN" ] ; then
do_clean
if [ "$NM_BUILD_TARBALL" = 1 ]; then
if check_run 1 ; then
mv "$ARTIFACT_DIR/docs-html/" ./
fi
if check_run 8 ; then
mv \
"$ARTIFACT_DIR"/NetworkManager-1*.tar.xz \
"$ARTIFACT_DIR"/NetworkManager-1*.src.rpm \
./
fi
fi
fi