]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
common/rc: check error case and fail the test
authorNaohiro Aota <naohiro.aota@wdc.com>
Wed, 27 Sep 2023 06:11:00 +0000 (15:11 +0900)
committerZorro Lang <zlang@kernel.org>
Thu, 5 Oct 2023 14:44:29 +0000 (22:44 +0800)
commitffa82237277e4dd842025451911b5f3eee4a16e1
treecf9ba3d2b59b34ff9589e1dc14fcdf671b4f8160
parentab81b565f360218e63d71d33d244edae608f9e7a
common/rc: check error case and fail the test

If we place /var/lib/xfstests on a read-only filesystem, commands in
_link_out_file_named() fail to modify the files. However, they won't fail
the test. As a result, the test case fails mysteriously with only "no
qualified output" printed.

Fix it by checking the error case.

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc