add pacman keyring check to testuite

This commit is contained in:
Tobias Powalowski 2024-06-11 09:10:49 +02:00
parent aa4e2a2e89
commit 8cfbcd3aa6

View file

@ -23,7 +23,20 @@ _result() {
fi fi
} }
_gpg_check() {
# pacman-key process itself
while pgrep -x pacman-key &>"${_NO_LOG}"; do
sleep 1
done
# gpg finished in background
while pgrep -x gpg &>"${_NO_LOG}"; do
sleep 1
done
}
[[ -z "${1}" || "${1}" != "run" ]] && _usage [[ -z "${1}" || "${1}" != "run" ]] && _usage
echo "Waiting for pacman keyring..."
_gpg_check
_run_test "Boot Test" _run_test "Boot Test"
if dmesg | grep -q error; then if dmesg | grep -q error; then
dmesg | grep error >>dmesg-error.txt dmesg | grep error >>dmesg-error.txt