diff options
author | Phil Dawson <phil.dawson@codethink.co.uk> | 2019-01-16 14:03:41 +0000 |
---|---|---|
committer | Phil Dawson <phil.dawson@codethink.co.uk> | 2019-02-08 14:27:54 +0000 |
commit | b4d4c4f59c12c9b500f83d8cd4381418e1124f67 (patch) | |
tree | ff2b7c958ba18ab3a018d1917a7b9369bc82b8a9 /tests/cachekey | |
parent | e61f471376d6d3ef2691abf3eee75d30999e7f05 (diff) | |
download | buildstream-b4d4c4f59c12c9b500f83d8cd4381418e1124f67.tar.gz |
Expose basic api for testing external plugins.phil/plugin-testing-api
We want external plugins to be able to make use of the core testing utils.
This commit exposes the basic utilities which are currently in use in
bst-external plugins. If necessary, more utilities could be exposed in the
future.
Moves the following files from tests/testutils/ to
buildstream/plugintestingutils/:
o runcli.py
o integration.py
As part of this, this commit makes the following changes to runcli.py
and integration.py:
o runcli.py: Fix linting errors
o runcli.py: Add user facing documentation
o Integration.py: Add user facing documentation
Diffstat (limited to 'tests/cachekey')
-rw-r--r-- | tests/cachekey/cachekey.py | 2 | ||||
-rwxr-xr-x | tests/cachekey/update.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/cachekey/cachekey.py b/tests/cachekey/cachekey.py index 761ff0c76..4a6896888 100644 --- a/tests/cachekey/cachekey.py +++ b/tests/cachekey/cachekey.py @@ -35,7 +35,7 @@ # run over to the corresponding .expected source files and commit # the result. # -from tests.testutils.runcli import cli +from buildstream.plugintestutils.runcli import cli from tests.testutils.site import HAVE_BZR, HAVE_GIT, HAVE_OSTREE, IS_LINUX, MACHINE_ARCH from buildstream.plugin import CoreWarnings from buildstream import _yaml diff --git a/tests/cachekey/update.py b/tests/cachekey/update.py index d574d07b3..3e0924925 100755 --- a/tests/cachekey/update.py +++ b/tests/cachekey/update.py @@ -13,7 +13,7 @@ # import os import tempfile -from tests.testutils.runcli import Cli +from buildstream.plugintestutils.runcli import Cli # This weird try / except is needed, because this will be imported differently # when pytest runner imports them vs when you run the updater directly from |