thesofproject / sof-test

BSD 3-Clause "New" or "Revised" License
13 stars 46 forks source link

lib.sh: workaround "sudo ... &" corruption issue 1151 for stable-v2.2 #1221

Closed marc-hb closed 4 months ago

marc-hb commented 4 months ago

Should finally fix terminal corruption issue #1151.

Commit 834163887828 was a good workaround but it was applied only for Zephyr's mtrace.

marc-hb commented 4 months ago

Usual LNL failures in https://sof-ci.01.org/softestpr/PR1221/build639/devicetest/index.html

Everything else green.

fredoh9 commented 4 months ago

BTW, separate and side note,

Can you figure out check-xrun-injection.sh \r\n vs \n issue?

check-xrun-injection.sh
2024-07-16 19:29:03 UTC Sub-Test: [INFO] Testing: test xrun injection on PCM:pcm3c,capture. Interval time: 0.5
2024-07-16 19:29:03 UTC Sub-Test: [COMMAND] arecord -Dhw:0,3 -r 48000 -c 4 -f S16_LE /dev/null -q
2024-07-16 19:29:03 UTC Sub-Test: [COMMAND] echo 1 > /proc/asound/card0/pcm3c/sub0/xrun_injection
2024-07-16 19:29:03 UTC Sub-Test: [INFO] XRUN injection: 1
overrun!!! (at least 0.117 ms long)
                                   2024-07-16 19:29:04 UTC Sub-Test: [INFO] XRUN injection: 2
overrun!!! (at least 0.176 ms long)
                                   2024-07-16 19:29:04 UTC Sub-Test: [INFO] XRUN injection: 3
overrun!!! (at least 0.048 ms long)
                                   2024-07-16 19:29:05 UTC Sub-Test: [INFO] XRUN injection: 4
overrun!!! (at least 0.094 ms long)
                                   2024-07-16 19:29:06 UTC Sub-Test: [INFO] XRUN injection: 5
overrun!!! (at least 0.098 ms long)
                                   2024-07-16 19:29:06 UTC Sub-Test: [COMMAND] kill process: kill -9 10011
2024-07-16 19:29:06 UTC Sub-Test: [INFO] Testing: test xrun injection on PCM:pcm4c,capture. Interval time: 0.5