Skip to content

Commit 0a5a80c

Browse files
committed
tests: Skip fstype tests if the mtab isn't available
1 parent 9f6f391 commit 0a5a80c

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

tests/bfs/printf_everything.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
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})
1+
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})
2+
3+
# Check if we have fstypes
4+
if ! fail invoke_bfs basic -printf '%F' -quit >/dev/null; then
5+
everything+=(%F)
6+
fi
7+
28
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})
39

410
# Check if we have birth times

tests/gnu/fstype.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
fstype=$(invoke_bfs basic -maxdepth 0 -printf '%F\n')
2+
skip_if test $? -ne 0
23
bfs_diff basic -fstype "$fstype"

0 commit comments

Comments
 (0)