Skip to content

Commit e5ac4d1

Browse files
committed
test fstype: squash warnings
1 parent 7594802 commit e5ac4d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

+stdlib/+sys/filesystem_type.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
elseif ismac()
1111
cmd = "df -aHY " + p + " | awk 'NR==2 {print $2}'";
1212
else
13-
cmd = "df -T " + p + " | awk 'NR==2 {print $2}'";
13+
cmd = "df --output=fstype " + p + " | tail -n 1";
1414
end
1515

1616
[s, t] = system(cmd);

test/TestDisk.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ function test_filesystem_type(tc, Ps, fst_fun)
6464
t = fst_fun(Ps);
6565
tc.verifyClass(t, 'string')
6666

67-
tc.assumeFalse(isempty(t) && tc.CI, "Some CI block viewing their filesystem type")
6867

6968
if stdlib.exists(Ps)
69+
tc.assumeFalse(isempty(t) && tc.CI, "Some CI block viewing their filesystem type")
7070
tc.verifyGreaterThan(strlength(t), 0)
7171
else
7272
tc.verifyEmpty(t)

0 commit comments

Comments
 (0)