summaryrefslogtreecommitdiff
path: root/tests/testutils/repo
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.com>2017-09-05 04:22:13 -0500
committerTristan Maat <tristan.maat@codethink.co.uk>2017-09-28 14:46:33 +0100
commit206fc51a6cf57697f03e27508819eafaaee58317 (patch)
treee019ce1bf25ceb1ca90964450908ae2965e75eef /tests/testutils/repo
parent37ece921d0cd4a69174ae8591127113973f53d46 (diff)
downloadbuildstream-206fc51a6cf57697f03e27508819eafaaee58317.tar.gz
Fix tests for other platforms
Diffstat (limited to 'tests/testutils/repo')
-rw-r--r--tests/testutils/repo/__init__.py2
-rw-r--r--tests/testutils/repo/ostree.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/testutils/repo/__init__.py b/tests/testutils/repo/__init__.py
index c3b54a739..3516679aa 100644
--- a/tests/testutils/repo/__init__.py
+++ b/tests/testutils/repo/__init__.py
@@ -1,5 +1,7 @@
from collections import OrderedDict
import pytest
+from ..site import HAVE_OSTREE
+
from .git import Git
from .bzr import Bzr
from .ostree import OSTree
diff --git a/tests/testutils/repo/ostree.py b/tests/testutils/repo/ostree.py
index f92f40fcb..f49659ca2 100644
--- a/tests/testutils/repo/ostree.py
+++ b/tests/testutils/repo/ostree.py
@@ -1,14 +1,16 @@
+import pytest
import subprocess
from .repo import Repo
-from ..site import HAVE_OSTREE_CLI
+from ..site import HAVE_OSTREE_CLI, HAVE_OSTREE
class OSTree(Repo):
def __init__(self, directory):
- if not HAVE_OSTREE_CLI:
+ if not HAVE_OSTREE_CLI or not HAVE_OSTREE:
pytest.skip("ostree cli is not available")
+
super(OSTree, self).__init__(directory)
def create(self, directory):