diff options
Diffstat (limited to 'tests/artifactcache/tar.py')
-rw-r--r-- | tests/artifactcache/tar.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/artifactcache/tar.py b/tests/artifactcache/tar.py index d982aab01..4a2f5658a 100644 --- a/tests/artifactcache/tar.py +++ b/tests/artifactcache/tar.py @@ -6,8 +6,7 @@ from contextlib import ExitStack import pytest from buildstream._artifactcache.tarcache import Tar -from buildstream.utils import get_host_tool -from buildstream._exceptions import ProgramNotFoundError +from buildstream import utils, ProgramNotFoundError # Test that it 'works' - this may be equivalent to test_archive_no_tar() @@ -37,7 +36,7 @@ def test_archive_no_tar(): try: for tar in ['gtar', 'tar']: with pytest.raises(ProgramNotFoundError): - get_host_tool(tar) + utils.get_host_tool(tar) # Run the same test as before, this time 'tar' should not be available test_archive_default() @@ -72,7 +71,7 @@ def test_extract_no_tar(): # Ensure we can't find 'tar' or 'gtar' for tar in ['gtar', 'tar']: with pytest.raises(ProgramNotFoundError): - get_host_tool(tar) + utils.get_host_tool(tar) # Run the same test as before, this time 'tar' should not be available try: |