Revert "ci/pytest: make sure tests run on correct branch (MR 6418)"

The wrong branch was not only used for pytest, but for all CI tests that
used pmbootstrap. I've fixed the bug in pmbootstrap now and added a
generic check to ensure we would catch a similar bug if we had one in
the future.

This reverts commit 7fd9e01f7f.

Related: pmaports issue 3674
Related: pmbootstrap MR 2586
Related: ci-common MR 14

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6439
This commit is contained in:
Oliver Smith 2025-04-21 14:23:06 +02:00
parent 6d6f2c4aa1
commit a2ccee27f6
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -10,8 +10,6 @@ if [ "$(id -u)" = 0 ]; then
set -x
wget "https://gitlab.postmarketos.org/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
sh ./install_pmbootstrap.sh pytest
# FIXME: workaround for pmb init switching the branch on us...
su "${TESTUSER:-pmos}" -c "git -C $CI_PROJECT_DIR checkout $CI_COMMIT_SHA"
exec su "${TESTUSER:-pmos}" -c "sh -e $0"
fi