Skip to content

Commit 1bfab64

Browse files
committed
TestFilesystem Type
1 parent 80060cd commit 1bfab64

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/TestDisk.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
properties
44
disk_fun = stdlib.has_python() || stdlib.has_dotnet() || stdlib.has_java()
5+
CI = getenv("CI") == "true" || getenv("GITHUB_ACTIONS") == "true"
56
end
67

78
properties (TestParameter)
8-
Ps = {".", "", "not-exist"}
9+
Ps = {".", "", "/", getenv("SystemDrive"), "not-exist"}
910
end
1011

1112
methods (Test)
@@ -52,6 +53,9 @@ function test_filesystem_type(tc, Ps)
5253
tc.verifyClass(s, 'string')
5354
L = strlength(s);
5455

56+
tc.assumeFalse(isempty(L) && tc.CI, "Some CI block viewing their filesystem type")
57+
58+
5559
if stdlib.exists(Ps)
5660
tc.verifyGreaterThan(L, 0)
5761
else

0 commit comments

Comments
 (0)