mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common: create _require_test_program to look for programs in src/
Create a helper that looks for a test program in src/ and fails the test if it doesn't exist. Refactor the existing testcases to use it. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ _filter_mkfs <$tmp.mkfs0 2>$tmp.mkfs1
|
||||
[ $lversion -ne 1 ] && \
|
||||
_notrun "Cannot run this test yet using MKFS_OPTIONS specified"
|
||||
|
||||
[ $here/src/loggen ] || _notrun "loggen not built, skipping test"
|
||||
_require_test_program "loggen"
|
||||
|
||||
_check_mount
|
||||
_check_require_logdev
|
||||
|
||||
Reference in New Issue
Block a user