diff --git a/usr/bin/archboot-testsuite.sh b/usr/bin/archboot-testsuite.sh index 53f74c75b..553b2526e 100755 --- a/usr/bin/archboot-testsuite.sh +++ b/usr/bin/archboot-testsuite.sh @@ -23,7 +23,20 @@ _result() { 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 +echo "Waiting for pacman keyring..." +_gpg_check _run_test "Boot Test" if dmesg | grep -q error; then dmesg | grep error >>dmesg-error.txt