summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-05 14:55:50 +0100
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-06 14:37:59 +0100
commit668a6bafa2512d6b9df8f99dece6df5e1b2366fe (patch)
treee00081e5c724180d4afc40f37911b0e311c60249
parent87638a11a786c832aebbed90efeb8da7f28df0fd (diff)
downloadbuildstream-668a6bafa2512d6b9df8f99dece6df5e1b2366fe.tar.gz
tests/testutils/site: Remove completely and migrate HAVE_OSTREE to examples
The only place needing to know about OSTREE is the flatpak-autotools for the documentation. We can therefore move the OSTREE business here and remove completely the site file, ending up with a single one left.
-rw-r--r--tests/examples/flatpak-autotools.py8
-rw-r--r--tests/testutils/site.py9
2 files changed, 7 insertions, 10 deletions
diff --git a/tests/examples/flatpak-autotools.py b/tests/examples/flatpak-autotools.py
index dc4a3ce15..cdc629de1 100644
--- a/tests/examples/flatpak-autotools.py
+++ b/tests/examples/flatpak-autotools.py
@@ -7,7 +7,6 @@ import pytest
from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from buildstream.testing.integration import assert_contains
from buildstream.testing._utils.site import IS_LINUX, MACHINE_ARCH
-from tests.testutils.site import HAVE_OSTREE
pytestmark = pytest.mark.integration
@@ -18,6 +17,13 @@ DATA_DIR = os.path.join(
)
+try:
+ from bst_plugins_experimental.sources import _ostree # pylint: disable=unused-import
+ HAVE_OSTREE = True
+except (ImportError, ValueError):
+ HAVE_OSTREE = False
+
+
# FIXME: Workaround a setuptools bug which fails to include symbolic
# links in the source distribution.
#
diff --git a/tests/testutils/site.py b/tests/testutils/site.py
deleted file mode 100644
index 8a75f00ae..000000000
--- a/tests/testutils/site.py
+++ /dev/null
@@ -1,9 +0,0 @@
-# Some things resolved about the execution site,
-# so we dont have to repeat this everywhere
-#
-
-try:
- from bst_plugins_experimental.sources import _ostree # pylint: disable=unused-import
- HAVE_OSTREE = True
-except (ImportError, ValueError):
- HAVE_OSTREE = False