]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (findmnt) add missing ts_finalize_subtest
authorKarel Zak <kzak@redhat.com>
Wed, 6 May 2026 11:34:07 +0000 (13:34 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 11 May 2026 09:06:04 +0000 (11:06 +0200)
The last subtest "options-no-multi" was missing ts_finalize_subtest
before ts_finalize, detected by the new runtime guard.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/findmnt/filterQ
tests/ts/findmnt/outputs

index fe97a7ecf2b44717eec6d821e4ea2c42f2511eb3..a16b4492af430a86585e9ee9e6ccf77b7296452f 100755 (executable)
@@ -73,5 +73,6 @@ ts_finalize_subtest
 ts_init_subtest "options-no-multi"
 $TS_CMD_FINDMNT --filter 'OPTIONS =~ "\<nosuid\>" && OPTIONS =~ "\<nodev\>" && OPTIONS =~ "\<blkio\>"' --kernel --tab-file "$TS_SELF/files/mountinfo" &> "$TS_OUTPUT"
 echo rc=$? >> "$TS_OUTPUT"
+ts_finalize_subtest
 
 ts_finalize
index e3181335c1dc4172e3e700d0d2d4eb088945c314..2d1e7b8ce4dfdc184643691191ed22ae0845447d 100755 (executable)
@@ -126,8 +126,8 @@ else
     # This should not return anything
     $TS_CMD_FINDMNT --output TARGET --nocanonicalize "$TEST_LINK" >>"$TS_OUTPUT" 2>>"$TS_ERRLOG"
     rm -f "$TEST_LINK"
-    ts_finalize_subtest
 fi
+ts_finalize_subtest
 
 ts_init_subtest "default"
 $TS_CMD_FINDMNT --tab-file "$TS_SELF/files/mountinfo" &> "$TS_OUTPUT"