]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/config: redirect modprobe helpinfo to stdout for busybox
authorStas Sergeev <stsp2@yandex.ru>
Tue, 27 Jun 2023 18:27:31 +0000 (23:27 +0500)
committerZorro Lang <zlang@kernel.org>
Wed, 28 Jun 2023 11:19:11 +0000 (19:19 +0800)
Due to the busybox' modprobe writes help to stderr. We need to
redirect it to stdout, or it will end up in a test results.

Signed-off-by: Stas Sergeev <stsp2@yandex.ru>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/config

index e479df8dd361f47eff0ddc99f6960c630495947b..936ac225f4b154055e30431edd49abba7daa2bc9 100644 (file)
@@ -261,7 +261,7 @@ export UDEV_SETTLE_PROG
 # Set MODPROBE_PATIENT_RM_TIMEOUT_SECONDS to "forever" if you want the patient
 # modprobe removal to run forever trying to remove a module.
 MODPROBE_REMOVE_PATIENT=""
-modprobe --help >& /dev/null && modprobe --help | grep -q -1 "remove-patiently"
+modprobe --help >& /dev/null && modprobe --help 2>&1 | grep -q -1 "remove-patiently"
 if [[ $? -ne 0 ]]; then
        if [[ -z "$MODPROBE_PATIENT_RM_TIMEOUT_SECONDS" ]]; then
                # We will open code our own implementation of patient module