From c1392408f9a10f8db7202a6171ba2b52925e5d3c Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Fri, 26 Jul 2024 11:55:46 +0200 Subject: [PATCH] tst_test: Print used temporary dir and its filesystem It helps debugging to know used filesystem (and in case of TST_ALL_FILESYSTEMS=1 the underlying filesystem). This follows 5cabf2bea7 change in C API, using 'stat' which should work also on busybox. Missing 'stat' binary (or busybox symlink) does not break test (just the output is mangled), thus 'stat' presence is not tested/required. Link: https://lore.kernel.org/ltp/20240726095546.1041726-4-pvorel@suse.cz/ Reviewed-by: Avinesh Kumar Signed-off-by: Petr Vorel --- testcases/lib/tst_test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh index 5ea2c9ba983..c19c30b76fa 100644 --- a/testcases/lib/tst_test.sh +++ b/testcases/lib/tst_test.sh @@ -745,6 +745,7 @@ tst_run() TST_STARTWD=$(pwd) cd "$TST_TMPDIR" + tst_res TINFO "Using $TST_TMPDIR as tmpdir ($(stat -f -c '%T' $TST_TMPDIR) filesystem)" fi # needs to be after cd $TST_TMPDIR to keep test_dev.img under $TST_TMPDIR