mirror of https://github.com/thesofproject/sof.git
qemu-check.sh: restore error messages when test fails
Fixes 428804e1c
("scripts/qemu-check.sh: add set -e") which failed to
consider the case of an empty $IPC_REG or $IPC_MSG.
Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
parent
8ceef9d460
commit
1c4d14a5fb
|
@ -162,9 +162,12 @@ do
|
||||||
SHM_IPC_REG_FILE=$(ls /dev/shm/ | grep -E $SHM_IPC_REG)
|
SHM_IPC_REG_FILE=$(ls /dev/shm/ | grep -E $SHM_IPC_REG)
|
||||||
|
|
||||||
# check if ready ipc header is in the ipc regs
|
# check if ready ipc header is in the ipc regs
|
||||||
IPC_REG=$(hexdump -C /dev/shm/"$SHM_IPC_REG_FILE" | grep "$READY_IPC")
|
IPC_REG=$(hexdump -C /dev/shm/"$SHM_IPC_REG_FILE" |
|
||||||
|
grep "$READY_IPC") || true
|
||||||
|
|
||||||
# check if ready ipc message is in the mbox
|
# check if ready ipc message is in the mbox
|
||||||
IPC_MSG=$(hexdump -C /dev/shm/$SHM_MBOX | grep -A 4 "$READY_MSG" | grep -A 4 "$OUTBOX_OFFSET")
|
IPC_MSG=$(hexdump -C /dev/shm/$SHM_MBOX | grep -A 4 "$READY_MSG" |
|
||||||
|
grep -A 4 "$OUTBOX_OFFSET") || true
|
||||||
|
|
||||||
if [ "$IPC_REG" ]; then
|
if [ "$IPC_REG" ]; then
|
||||||
echo "ipc reg dump:"
|
echo "ipc reg dump:"
|
||||||
|
|
Loading…
Reference in New Issue