Conditionally skip failing test
diff --git a/tests/frontend/workspace.py b/tests/frontend/workspace.py
index aff3e15..67a35ab 100644
--- a/tests/frontend/workspace.py
+++ b/tests/frontend/workspace.py
@@ -3,7 +3,7 @@
import shutil
import subprocess
from ruamel.yaml.comments import CommentedSet
-from tests.testutils import cli, create_repo, ALL_REPO_KINDS
+from tests.testutils import cli, create_repo, ALL_REPO_KINDS, site
from buildstream import _yaml
from buildstream._exceptions import ErrorDomain, LoadError, LoadErrorReason
@@ -517,6 +517,9 @@
elif modification == 'removefile':
os.remove(os.path.join(workspace, 'usr', 'bin', 'hello'))
elif modification == 'modifyfile':
+ if not site.have_subsecond_mtime(tmpdir):
+ pytest.skip("Filesystem does not support subsecond mtime precision: {}".format(tmpdir))
+
with open(os.path.join(workspace, 'usr', 'bin', 'hello'), 'w') as f:
f.write('cookie')
else: