]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: properly look for ts_cap helper
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 6 Aug 2024 17:44:00 +0000 (19:44 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 6 Aug 2024 17:44:49 +0000 (19:44 +0200)
Helpers should use ts_check_test_command, not ts_check_prog.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/functions.sh

index 4a00b2ff4e97db9bbb1f267c51260860ac2de1f6..6301668715dc0ac06a61817d56a864e26e43c5cf 100644 (file)
@@ -168,7 +168,7 @@ function ts_skip_nonroot {
 #      ts_skip_capability cap_wake_alarm
 #
 function ts_skip_capability {
-       ts_check_prog "$TS_HELPER_CAP"
+       ts_check_test_command "$TS_HELPER_CAP"
 
        if ! "$TS_HELPER_CAP" "$1"; then
                ts_skip "no capability: $1"