]> www.infradead.org Git - users/hch/blktests.git/commitdiff
check: ensure to suppress job status output
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 16 Jun 2022 04:12:14 +0000 (13:12 +0900)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Mon, 20 Jun 2022 00:54:11 +0000 (09:54 +0900)
Unexpected job status output by wait commands was observed on openSUSE
15.3 and it made some test cases fail. To avoid the job status output
during test case runs, ensure to turn off job control monitor in sub-
shell for test case runs.

Reported-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/linux-block/20220613151721.18664-1-jack@suse.cz/
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Tested-by: Jan Kara <jack@suse.cz>
check

diff --git a/check b/check
index 7037d885e5cfc557de29f08423c4b3b981fa0c4d..a0c27d92c8fe9e8b64eb99c7635cc62c316083d6 100755 (executable)
--- a/check
+++ b/check
@@ -440,6 +440,10 @@ _run_test() {
        RUN_FOR_ZONED=0
        FALLBACK_DEVICE=0
 
+       # Ensure job control monitor mode is off in the sub-shell for test case
+       # runs to suppress job status output.
+       set +m
+
        # shellcheck disable=SC1090
        . "tests/${TEST_NAME}"