diff options
author | Philippe Mathieu-Daudé | 2020-09-09 13:27:40 +0200 |
---|---|---|
committer | Alex Bennée | 2020-09-10 11:46:57 +0200 |
commit | 89e076f37d0020bfadb127059083baeb57594f70 (patch) | |
tree | 79822e777314a26c4c251a31677761b1df3a1206 /tests/acceptance | |
parent | tests: bump avocado version (diff) | |
download | qemu-89e076f37d0020bfadb127059083baeb57594f70.tar.gz qemu-89e076f37d0020bfadb127059083baeb57594f70.tar.xz qemu-89e076f37d0020bfadb127059083baeb57594f70.zip |
tests/acceptance: Add Test.fetch_asset(cancel_on_missing=True)
Invert the default of avocado.Test.fetch_asset 'cancel_on_missing'
keyword: accept missing artefacts by default. If a test is certain
an artifact can't be missing, it will set cancel_on_missing=False.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200908202352.298506-3-philmd@redhat.com>
Message-Id: <20200909112742.25730-10-alex.bennee@linaro.org>
Diffstat (limited to 'tests/acceptance')
-rw-r--r-- | tests/acceptance/avocado_qemu/__init__.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/avocado_qemu/__init__.py index db9c0f5d79..4cda037187 100644 --- a/tests/acceptance/avocado_qemu/__init__.py +++ b/tests/acceptance/avocado_qemu/__init__.py @@ -192,3 +192,15 @@ class Test(avocado.Test): def tearDown(self): for vm in self._vms.values(): vm.shutdown() + + def fetch_asset(self, name, + asset_hash=None, algorithm=None, + locations=None, expire=None, + find_only=False, cancel_on_missing=True): + return super(Test, self).fetch_asset(name, + asset_hash=asset_hash, + algorithm=algorithm, + locations=locations, + expire=expire, + find_only=find_only, + cancel_on_missing=cancel_on_missing) |