- Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathconftest.py
18 lines (13 loc) · 664 Bytes
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"""
importpytest
fromframework.artifactsimportfirecracker_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())
deffirecracker_release(request, record_property):
"""Return all supported firecracker binaries."""
firecracker=request.param
record_property("firecracker_release", firecracker.name)
returnfirecracker