You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/02/04 07:19:16 UTC
[buildstream] 02/02: Conditionally skip failing test
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch nanonyme/fix-tests
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit de613d3ac45e08967ff2e8db498137fa0c33eec6
Author: Seppo Yli-Olli <se...@gmail.com>
AuthorDate: Mon Nov 2 17:51:18 2020 +0200
Conditionally skip failing test
---
tests/frontend/workspace.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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 pytest
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 @@ def test_detect_modifications(cli, tmpdir, datafiles, modification, strict):
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: