forked from firecracker-microvm/firecracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: move fixture to avoid spurious build
Move the fixture so that it is only evaluated if we are running functional tests. Signed-off-by: Pablo Barbáchano <pablob@amazon.com>
- Loading branch information
Showing
2 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
"""Imported by pytest when running tests in this directory""" | ||
|
||
import pytest | ||
|
||
from framework.artifacts import firecracker_artifacts | ||
|
||
|
||
# This fixture forces a Firecracker build, even if it doesn't get used. | ||
# By placing it here instead of the top-level conftest.py we skip the build. | ||
@pytest.fixture(params=firecracker_artifacts()) | ||
def firecracker_release(request, record_property): | ||
"""Return all supported firecracker binaries.""" | ||
firecracker = request.param | ||
record_property("firecracker_release", firecracker.name) | ||
return firecracker |