mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: use a common _filter_test_dir function
Christoph Hellwig suggested that a function similar to the common "_filter_scratch" function ought to be created to handle filtering of the TEST_DIR and TEST_DEV variables. This patch implements that. The name "_filter_test" seems like it might suggest it does something different, so I'm calling this one "_filter_test_dir". This unfortunately makes the "test" and "scratch" functions have different naming conventions, but I guess we should be accustomed to that by now (consider "TEST_DIR" and "SCRATCH_MNT"). Signed-off-by: Alex Elder <aelder@sgi.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -214,6 +214,11 @@ _filter_xfs_io_unique()
|
||||
common_line_filter | _filter_xfs_io
|
||||
}
|
||||
|
||||
_filter_test_dir()
|
||||
{
|
||||
sed -e "s,$TEST_DEV,TEST_DEV,g" -e "s,$TEST_DIR,TEST_DIR,g"
|
||||
}
|
||||
|
||||
_filter_scratch()
|
||||
{
|
||||
sed -e "s,$SCRATCH_DEV,SCRATCH_DEV,g" -e "s,$SCRATCH_MNT,SCRATCH_MNT,g"
|
||||
|
||||
Reference in New Issue
Block a user