Skip to content

Commit eda3c85

Browse files
temp: adapt struct layout test for sunOS only
1 parent c90c529 commit eda3c85

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,23 +155,18 @@ jobs:
155155
python3 "$file" -h
156156
done
157157
158-
- name: Only test struct layout (MacOS)
159-
if: startsWith( matrix.os, 'macos' )
160-
run: |
161-
python3 -m pytest -s -v -rs tests/test_struct_layout.py
162-
163158
- name: Unit Tests (FUSE 2)
164159
if: startsWith( matrix.os, 'ubuntu' )
165160
run: |
166161
python3 -c 'import mfusepy; assert mfusepy.fuse_version_major == 2'
167-
python3 -m pytest -v -rs tests
162+
python3 -m pytest -v -rs -k "not struct_layout" tests
168163
169164
- name: Unit Tests (FUSE 3)
170165
if: startsWith( matrix.os, 'ubuntu' )
171166
run: |
172167
export FUSE_LIBRARY_PATH=$( dpkg -L libfuse3-3 | 'grep' -F .so | head -1 )
173168
python3 -c 'import mfusepy; assert mfusepy.fuse_version_major == 3'
174-
python3 -m pytest -v -rs tests
169+
python3 -m pytest -v -rs -k "not struct_layout" tests
175170
176171
- name: Test Compatibility (Ratarmount)
177172
if: startsWith( matrix.os, 'ubuntu' )
@@ -261,7 +256,7 @@ jobs:
261256
262257
# Unit Tests (FUSE 2)
263258
python3 -c 'import mfusepy; assert mfusepy.fuse_version_major == 2'
264-
python3 -m pytest -s -v -rs tests
259+
python3 -m pytest -s -v -rs -k "not struct_layout" tests
265260
;;
266261
openbsd)
267262
# Ensure a proper hostname/FQDN is set (VMs may not have one by default)
@@ -285,7 +280,7 @@ jobs:
285280
python3 -c 'import mfusepy; assert mfusepy.fuse_version_major == 2'
286281
287282
# FUSE mounting only works as root on OpenBSD
288-
sudo -E .venv/bin/python3 -m pytest -s -v -rs tests
283+
sudo -E .venv/bin/python3 -m pytest -s -v -rs -k "not struct_layout" tests
289284
;;
290285
netbsd)
291286
# Ensure a proper hostname/FQDN is set (VMs may not have one by default)
@@ -317,9 +312,8 @@ jobs:
317312
318313
# preserve pytest exit status, always show logs
319314
rc=0
320-
python3 -m pytest -s -v -rs tests/test_struct_layout.py
321315
# for now, run the tests as root, too many PermissionErrors:
322-
sudo -E python3 -m pytest -s -v -rs tests || rc=$?
316+
sudo -E python3 -m pytest -s -v -rs -k "not struct_layout" tests || rc=$?
323317
exit "$rc"
324318
;;
325319
omnios)

tests/test_struct_layout.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pprint
55
import shutil
66
import subprocess
7+
import sys
78
import tempfile
89
from pathlib import Path
910

@@ -43,17 +44,19 @@
4344
'f_frsize',
4445
'f_fsid',
4546
'f_namemax',
47+
'f_basetype',
48+
'f_str',
4649
],
47-
'fuse_context': ['fuse', 'uid', 'gid', 'pid', 'umask'],
50+
'fuse_context': ['fuse', 'uid', 'gid', 'pid'], # 'umask'
4851
'fuse_conn_info': [
4952
'proto_major',
5053
'proto_minor',
5154
'max_write',
5255
'max_readahead',
53-
'capable',
54-
'want',
55-
'max_background',
56-
'congestion_threshold',
56+
# 'capable',
57+
# 'want',
58+
# 'max_background',
59+
# 'congestion_threshold',
5760
],
5861
'fuse_operations': [
5962
'getattr',

0 commit comments

Comments
 (0)