diff --git a/.ci/pytest.sh b/.ci/pytest.sh index 2baa8ea17..cd5c2c8e1 100755 --- a/.ci/pytest.sh +++ b/.ci/pytest.sh @@ -10,6 +10,8 @@ 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