From 0a5a80c98cc7e5d8735b615fa197a6cff2bb08cc Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 6 Nov 2022 11:45:28 -0500 Subject: tests: Skip fstype tests if the mtab isn't available --- tests/bfs/printf_everything.sh | 8 +++++++- tests/gnu/fstype.sh | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/bfs/printf_everything.sh b/tests/bfs/printf_everything.sh index 58996ab..5f20718 100644 --- a/tests/bfs/printf_everything.sh +++ b/tests/bfs/printf_everything.sh @@ -1,4 +1,10 @@ -everything=(%{a,b,c,d,D,f,F,g,G,h,H,i,k,l,m,M,n,p,P,s,S,t,u,U,y,Y}) +everything=(%{a,b,c,d,D,f,g,G,h,H,i,k,l,m,M,n,p,P,s,S,t,u,U,y,Y}) + +# Check if we have fstypes +if ! fail invoke_bfs basic -printf '%F' -quit >/dev/null; then + everything+=(%F) +fi + everything+=(%{A,C,T}{%,+,@,a,A,b,B,c,C,d,D,e,F,g,G,h,H,I,j,k,l,m,M,n,p,r,R,s,S,t,T,u,U,V,w,W,x,X,y,Y,z,Z}) # Check if we have birth times diff --git a/tests/gnu/fstype.sh b/tests/gnu/fstype.sh index 176688d..939438e 100644 --- a/tests/gnu/fstype.sh +++ b/tests/gnu/fstype.sh @@ -1,2 +1,3 @@ fstype=$(invoke_bfs basic -maxdepth 0 -printf '%F\n') +skip_if test $? -ne 0 bfs_diff basic -fstype "$fstype" -- cgit v1.2.3