Skip to content

Commit

Permalink
tests: Skip fstype tests if the mtab isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Nov 6, 2022
1 parent 9f6f391 commit 0a5a80c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/bfs/printf_everything.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/gnu/fstype.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
fstype=$(invoke_bfs basic -maxdepth 0 -printf '%F\n')
skip_if test $? -ne 0
bfs_diff basic -fstype "$fstype"

0 comments on commit 0a5a80c

Please sign in to comment.