Skip to content
Snippets Groups Projects
Unverified Commit f296dc62 authored by Oliver Smith's avatar Oliver Smith
Browse files

ci/pytest.sh: check if pmaports dir is clean


Verify that the pmaports dir is clean before starting the testsuite, as
some tests will fail if it is not. It's annoying when this is the reason
that you have to restart the testsuite run after it already spent some
time, so rather check for it beforehand.

Ideally the testsuite wouldn't depend on the state of pmaports, see
issue 2105 for that.

Reviewed-by: default avatarClayton Craft <clayton@craftyguy.net>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230226184731.6989-1-ollieparanoid@postmarketos.org%3E
parent f208bba4
Branches
Tags
No related merge requests found
......@@ -54,6 +54,12 @@ if ! [ -e "$deviceinfo" ]; then
exit 1
fi
# Make sure pmaports is clean, some of the tests will fail otherwise
if [ -n "$(git -C "$pmaports" status --porcelain)" ]; then
echo "ERROR: pmaports dir is not clean"
exit 1
fi
echo "Running pytest..."
echo "NOTE: use 'pmbootstrap log' to see the detailed log if running locally."
pytest \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment