git: b8aeb7101724 - stable/14 - mixer(8) tests: Fix cleanup routine
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 01 Sep 2024 13:29:52 UTC
The branch stable/14 has been updated by christos:
URL: https://cgit.FreeBSD.org/src/commit/?id=b8aeb7101724a0489509b3385571759014268e71
commit b8aeb7101724a0489509b3385571759014268e71
Author: Olivier Cochard-Labbé <olivier@freebsd.org>
AuthorDate: 2024-08-30 17:23:29 +0000
Commit: Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2024-09-01 13:29:40 +0000
mixer(8) tests: Fix cleanup routine
The tests correctly skip if no snd_dummy neither mixer is found, but the
cleanup is still called with the skip condition, which fails if there is
no mixer.
MFC after: 2 days
Reviewed by: christos
Differential Revision: https://reviews.freebsd.org/D46491
(cherry picked from commit 080c85127e3fba2c8cfb78cb75f7b306aee4028d)
---
usr.sbin/mixer/tests/mixer_test.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/usr.sbin/mixer/tests/mixer_test.sh b/usr.sbin/mixer/tests/mixer_test.sh
index e1321ad9ee13..45003251c460 100755
--- a/usr.sbin/mixer/tests/mixer_test.sh
+++ b/usr.sbin/mixer/tests/mixer_test.sh
@@ -66,7 +66,8 @@ set_default()
restore_default()
{
- test -r "test_mixer_deflt_unit" && mixer -d $(cat test_mixer_deflt_unit)
+ test -r "test_mixer_deflt_unit" &&
+ mixer -d $(cat test_mixer_deflt_unit) || true
}
atf_test_case o_flag cleanup