mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add pacman keyring check to testuite
This commit is contained in:
parent
aa4e2a2e89
commit
8cfbcd3aa6
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue