mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-26 00:14:41 +03:00
CI / AMD64 Build (push) Canceled after 0s
CI / ARM Build (push) Canceled after 0s
CI / Jetson Jetpack 6 (push) Canceled after 0s
CI / AMD64 Smoke Test (push) Canceled after 0s
CI / AMD64 Extra Build (push) Canceled after 0s
CI / ARM Extra Build (push) Canceled after 0s
CI / Synaptics Build (push) Canceled after 0s
CI / Assemble and push default build (push) Canceled after 0s
* Add Axelera Metis NPU object detector plugin Runs Frigate inference on the Axelera Metis NPU through the vendor's low-level axelera.runtime API with pip-installed, sha256-pinned wheels from Axelera's public artifactory (self-contained: auditwheel-repaired libs + bundled firmware). - async send_input/receive_output contract (FIFO pairing, overload emits zero rows instead of raising, frames are copied out of camera shm) - generic YOLO-family decoder driven by the compiled model's manifest.json (padded input geometry, dequant params, baked postprocess graph via onnx) - labels come from the compiled model's model_info.json; empty labelmaps fail loudly at init * object_detection: async runner path for the axelera detector * detectors: detect_axelera probe (/dev/metis*) + device node init * stats: Axelera Metis board temperature poller The card exposes no utilization counter usable next to a live detector, so the poller reports the board-controller temperature read via axcmd (cached 5s; the read must not race detector init). * docs: Axelera Metis detector (install, config, model catalog, downloads) * axelera: expose Metis colon-name device node and image deps for runtime enumeration The Axelera runtime enumerates Metis cards via the colon-separated node name created by the vendor udev rule on the host (e.g. /dev/metis-0:1:0) and probes kernel state with lsmod/lspci. Containers only receive the raw /dev/metis-0-1-0 node, so the detector never found the card. - init-devices: create /dev/metis-BB:DD:F aliases for each Metis node - install_deps: add kmod and pciutils so the runtime's driver check works * axelera: review round 2 (downloader, stop release, pixel format, docs size, per-class NMS) - download model zips through ModelDownloader (atomic .part rename; a truncated download no longer poisons the cache) - stop(): release the Context (releases connection/model/instance); the previous instance.free() call never existed in the runtime API and was silently swallowed - honor input_pixel_format: flip to RGB planes only when Frigate delivers BGR (input_pixel_format: bgr); with rgb the frame passes through as-is - docs/catalog: width/height = compiled 640x640 input (square regions no longer get squashed twice), document input_pixel_format: bgr - NMS via xyxy_to_xywh_for_nms + per-class cv2.dnn.NMSBoxes, matching the other detector plugins instead of a hand-rolled class-agnostic pass * axelera: report Metis temperature only on the NPU card The same board readout was surfaced twice on the System page: once as the detector temperature (get_hardware_temperatures) and once on the NPU card (npu_usages). Keep the NPU card, where the value belongs. * axelera: report AIPU utilization as the detector run duty cycle The runtime exposes no device-side usage counter (mvm_utilisation is a configuration limit, not a readout), so the NPU card rendered empty. ModelInstance.run blocks until the AIPU completes: the detector process now times each run and publishes busy/wall over a 2s window through a small file under the tmp cache dir; the stats poller reads it and sets the npu key. A stale file (detector idle/restarting) reports nothing rather than a stale number. * axelera: cut hot-path allocations in preprocess and dequantise Preprocess reused three fresh arrays per frame (resize output, quantised copy, strided channel flip at write time) and refilled the whole padded input buffer. Now resize writes into a scratch with cv2 dst=, the BGR->RGB swap is a cvtColor into scratch (no strided copy), the int8 quantise runs with out=, and only the border strips the content rect does not cover get memset. Measured 39% faster on the 704x576 -> 640x640 path. Dequantise allocated two fp32 temporaries per head (astype then the dequant expression) before the transpose copy. copyto now casts int8->fp32 while transposing straight into a reused fp32 feed buffer, and the zp/scale math runs in place. Measured 78% faster for the YOLOX-S head set, outputs bit-identical (int8->fp32 cast is lossless). Argmax+gather replaces max+argmax (one class-axis reduction instead of two), and the postprocess session pins intra_op_num_threads=1: one frame is in flight through the decoder, extra ORT threads only add context switches. * axelera: publish the run duty cycle through a shared Value Replace the tmp-file duty-cycle handoff (and the FRIGATE_TMP env var nothing else reads) with a third multiprocessing.Value alongside avg_inference_speed and detection_start: ObjectDetectProcess creates it, AsyncDetectorRunner passes it to the detector, and the plugin publishes busy/wall of the blocking ModelInstance.run over a 2s window, mirroring how memryx receives its shared state. No filesystem path, no staleness window, no atomic rename, and stats/hardware.py no longer imports the plugin module to find the file. The producer also ticks the window while the queue is empty, so the duty cycle falls to 0 when the card idles instead of sticking at its last value. Name it what it is: host-side occupancy of the run call, including DMA and driver time, not an AIPU core counter (the runtime exposes no device-side one). The NPU entry now reads temperature from the board controller plus the detector-reported run duty cycle folded in where the detector processes are in reach. * axelera: enumerate devices explicitly and fail with an actionable error Context.list_devices() keys off the lspci BDF and needs the colon-form node to be present, so surface an empty enumeration at init with the fix-it hint instead of a bare device_connect(None) ConnectionError several frames deeper. Uses the DeviceInfo the runtime enumerated rather than relying on the pick-first implicit path. * axelera: deliver every accepted result under backpressure, reset duty cycle on restart Greptile P1: _push_result dropped a completion when the result queue was full, stranding the runner's send_times entry and the input SHM mapping (1 submission : 1 result contract). Replace the drop with a stop-aware blocking put so an accepted submission always produces exactly one delivered completion. Greptile P2: start_or_restart did not clear run_duty_cycle when starting a replacement process, so stats could show the previous process's duty cycle while the new detector was still initializing. Reset it to the -1.0 sentinel alongside detection_start, inside the async branch. Greptile P2 (offline docs): list axelera among the detector types whose pre-seeded runtime files live under /config/model_cache/runtimes/<type>. * axelera: reviewer round 3 (plugin-owned enumeration tools, generic DEVICE_ALIASES, generic duty-cycle fold) install_deps.sh: drop kmod/pciutils from the base image. The runtime's list_devices() only greps popen'd lspci/lsmod output over /sys and /proc, so the plugin now installs shell stand-ins in its own /config/model_cache/axelera/bin and prepends it to PATH when the real tools are missing (hardware-verified: the stand-in lspci prints the Device 1f9d:<id> line the runtime matches, the lsmod shape matches /proc/modules). init-devices: replace the Metis-keyed alias block with a generic DEVICE_ALIASES env var (comma separated alias=target pairs, next to DEVICE_ACL_PATHS). Docker rejects colon-named nodes in --device AND in bind mounts (probed: 'too many colons' on both the long volume form and the mount form), so the in-container symlink stays necessary; docs carry the pair users must set. stats/util.py: fold any detector's published run_duty_cycle into the matching npu_usages entry generically; _axelera_run_duty_cycle and the per-vendor branch are gone. plugin: the no-device RuntimeError now names the raw dash-form node (--device rejects colons, users can only pass the raw node) and points at DEVICE_ALIASES for the colon alias. * axelera: reviewer round 4 (aggregate shared-type duty cycles, american spellings) stats/util.py: several detector processes can share one hardware type (e.g. two axelera cards on one host). Iterating and assigning made the displayed NPU usage depend on dict order, last writer wins. Collect the published windows per type and write the busiest one, matching what the removed per-vendor helper did with max(). plugin: the remaining British spellings (dequantise family) corrected to the American forms the repo requires. plugin: model path resolution follows hailo8l's single-string pattern (URL or local path or preset name in one value), the download uses urllib directly like memryx, and _find_model_json now raises on an ambiguous multi-model directory instead of returning whichever sorts first. plugin: AxeleraDetector exposes shutdown() (the async contract hook base.py calls) instead of close(); __del__ guards a partially initialised instance. * axelera: download URL models through the atomic ModelDownloader * axelera: bring the detector unit tests in tree * init-devices: create DEVICE_ALIASES before the ACL-mode exits An alias is not an ACL grant: users running with FRIGATE_RUN_AS_ROOT or FRIGATE_DEVICE_ACLS=false still need the colon-form node the runtime enumerates, so create the aliases right after the euid check. Document DEVICE_ALIASES next to DEVICE_ACL_PATHS and note it cannot work under docker's user: mode (the container cannot write to /dev). * detectors: cover the Axelera Metis probe in test_detector_hardware * Update docs/docs/configuration/non_root.md Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * axelera: address the 2026-10-12 review round - hash directory models deterministically in compute_model_hash instead of raising IsADirectoryError at startup - keep canonical model labels addressable after user renames in the labelmap lookup (two classes can share one renamed name) - key the URL model cache by source and archive content, extract replaced archives into fresh directories, prune superseded variants conservatively - keep publishing the run duty cycle when the hardware poll has no entry (duty-only npu_usages entry instead of a hidden detector) - document the user: mode device reach instead of host-only alias creation * axelera: prune only generated cache entries A fresh download matched user-provided layouts (the docs-recommended <name>/ directory, <name>.zip archives) and look-alike model names (yolox.zip vs yolox-s-*) by prefix. Pruning is now gated on the exact generated identity pattern <name>-<source>-<32 hex digits>, so downloads never touch user-provided directories, other models, or other sources. * axelera: narrow the model path design to memryx-style zips - path is always a .zip of the compiled output (local or http(s) URL), extracted fresh on every start under a lock, like the memryx custom-model flow - _decode returns the raw class index and Frigate's labelmap names it; _build_label_lookup and _read_model_labels are gone, and the YOLOX objectness check keys off model_type - scheme-less URL support and the quantized/manifest.json fallback are dropped - width/height must equal the compiled input size; init raises otherwise instead of letterboxing - compute_model_hash is back to the unchanged file-only hashing; the .extracted marker, source/content cache-name hashes and _prune_model_cache are removed * Update frigate/test/test_axelera_detector.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * axelera: drop the run duty cycle, match the hailo temperature flow - no other accelerator reports NPU usage and the published value was time blocked in run(), not device utilization from the vendor API; removing it leaves the runner selection as the only core change - the board temperature moves to a get_hardware_temperatures branch like hailo, so it renders on the detector card; _poll_axelera, its POLLERS entry and the _scan_detectors line are gone - axelera_runtime2 is not installed: axelera.runtime imports it only inside a try for its separate new-runtime API, and the low-level API the plugin uses (Context, load_model, device_connect, load_model_instance) lives in axelera.runtime.objects * axelera: follow-ups from the 2026-10-13 review round - the offline-setup table no longer lists the axelera_runtime2 wheels, which are not installed - a failed board temperature read starts a 60s cooldown so an unresponsive axcmd does not delay every stats update * axelera: drop the model-hash test, fix the model.json error messages * axelera: drop DEVICE_ALIASES, document the CDI device spec * axelera: use ln -sf in the CDI hook example --------- Co-authored-by: Patryk Watkowski <patrykorwat@users.noreply.github.com> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
299 lines
10 KiB
Python
299 lines
10 KiB
Python
"""Tests for detection hardware discovery."""
|
|
|
|
import os
|
|
import tempfile
|
|
import unittest
|
|
from unittest.mock import patch
|
|
|
|
from frigate.detectors import hardware
|
|
from frigate.detectors.detector_types import config_types
|
|
from frigate.detectors.hardware import HardwareProber
|
|
|
|
|
|
def write(path: str, content: str = "") -> None:
|
|
"""Create a file and any parent directories."""
|
|
os.makedirs(os.path.dirname(path), exist_ok=True)
|
|
|
|
with open(path, "w") as f:
|
|
f.write(content)
|
|
|
|
|
|
class HardwareProbeTestCase(unittest.TestCase):
|
|
"""Points every probe at an empty fixture tree, so nothing is found by default."""
|
|
|
|
def setUp(self):
|
|
self.root = tempfile.TemporaryDirectory()
|
|
self.addCleanup(self.root.cleanup)
|
|
|
|
for name in ("SYS_ROOT", "DEV_ROOT", "PROC_ROOT", "ETC_ROOT", "LIB_ROOT"):
|
|
sub = os.path.join(self.root.name, name.split("_")[0].lower())
|
|
os.makedirs(sub, exist_ok=True)
|
|
patcher = patch.object(hardware, name, sub)
|
|
patcher.start()
|
|
self.addCleanup(patcher.stop)
|
|
setattr(self, name.lower(), sub)
|
|
|
|
drm = patch.object(hardware, "enumerate_drm_devices", return_value={})
|
|
self.drm = drm.start()
|
|
self.addCleanup(drm.stop)
|
|
|
|
def probe(self) -> dict[str, hardware.DetectionHardware]:
|
|
return {found.key: found for found in HardwareProber().probe()}
|
|
|
|
|
|
class TestNoHardware(HardwareProbeTestCase):
|
|
def test_only_the_cpu_is_reported(self):
|
|
self.assertEqual(list(self.probe()), ["cpu"])
|
|
|
|
def test_the_cpu_is_unlimited(self):
|
|
self.assertTrue(self.probe()["cpu"].unlimited)
|
|
|
|
|
|
class TestCoral(HardwareProbeTestCase):
|
|
def test_each_apex_device_is_a_unit(self):
|
|
for name in ("apex_0", "apex_1"):
|
|
os.makedirs(os.path.join(self.sys_root, "class", "apex", name))
|
|
|
|
coral = self.probe()["edgetpu:pci"]
|
|
|
|
self.assertEqual(coral.count, 2)
|
|
self.assertEqual(
|
|
[unit.device for unit in coral.units],
|
|
["edgetpu:pci:0", "edgetpu:pci:1"],
|
|
)
|
|
|
|
def test_a_coral_is_not_unlimited(self):
|
|
os.makedirs(os.path.join(self.sys_root, "class", "apex", "apex_0"))
|
|
|
|
self.assertFalse(self.probe()["edgetpu:pci"].unlimited)
|
|
|
|
def test_usb_corals_are_found_by_their_usb_ids(self):
|
|
usb = os.path.join(self.sys_root, "bus", "usb", "devices")
|
|
# a Coral reports as Global Unichip before its firmware loads
|
|
write(os.path.join(usb, "1-1", "idVendor"), "1a6e")
|
|
write(os.path.join(usb, "1-1", "idProduct"), "089a")
|
|
# and as Google afterwards
|
|
write(os.path.join(usb, "1-2", "idVendor"), "18d1")
|
|
write(os.path.join(usb, "1-2", "idProduct"), "9302")
|
|
|
|
coral = self.probe()["edgetpu:usb"]
|
|
|
|
self.assertEqual(coral.count, 2)
|
|
self.assertEqual(coral.units[0].device, "edgetpu:usb:0")
|
|
|
|
def test_other_usb_devices_are_ignored(self):
|
|
usb = os.path.join(self.sys_root, "bus", "usb", "devices")
|
|
write(os.path.join(usb, "1-1", "idVendor"), "046d")
|
|
write(os.path.join(usb, "1-1", "idProduct"), "0825")
|
|
|
|
self.assertNotIn("edgetpu:usb", self.probe())
|
|
|
|
|
|
class TestGpus(HardwareProbeTestCase):
|
|
def test_a_single_intel_gpu_is_the_unnumbered_device(self):
|
|
self.drm.return_value = {"0000:00:02.0": "i915"}
|
|
|
|
gpu = self.probe()["openvino:GPU"]
|
|
|
|
self.assertEqual([unit.device for unit in gpu.units], ["openvino:GPU"])
|
|
self.assertTrue(gpu.unlimited)
|
|
|
|
def test_multiple_intel_gpus_are_numbered(self):
|
|
self.drm.return_value = {"0000:00:02.0": "i915", "0000:03:00.0": "xe"}
|
|
|
|
gpu = self.probe()["openvino:GPU"]
|
|
|
|
self.assertEqual(
|
|
[unit.device for unit in gpu.units],
|
|
["openvino:GPU.0", "openvino:GPU.1"],
|
|
)
|
|
|
|
def test_non_gpu_drm_devices_are_ignored(self):
|
|
self.drm.return_value = {"0000:00:02.0": "virtio-mmio"}
|
|
|
|
self.assertNotIn("openvino:GPU", self.probe())
|
|
|
|
def test_amd_gpus_run_through_onnx(self):
|
|
self.drm.return_value = {"0000:03:00.0": "amdgpu"}
|
|
|
|
self.assertEqual(self.probe()["onnx:amd"].units[0].device, "onnx")
|
|
|
|
def test_an_intel_npu_is_found_by_its_driver(self):
|
|
accel = os.path.join(self.sys_root, "class", "accel", "accel0", "device")
|
|
os.makedirs(accel)
|
|
os.symlink("/drivers/intel_vpu", os.path.join(accel, "driver"))
|
|
|
|
self.assertEqual(self.probe()["openvino:NPU"].units[0].device, "openvino:NPU")
|
|
|
|
def test_other_accel_devices_are_ignored(self):
|
|
accel = os.path.join(self.sys_root, "class", "accel", "accel0", "device")
|
|
os.makedirs(accel)
|
|
os.symlink("/drivers/something_else", os.path.join(accel, "driver"))
|
|
|
|
self.assertNotIn("openvino:NPU", self.probe())
|
|
|
|
|
|
class TestNvidia(HardwareProbeTestCase):
|
|
def _add_gpu(self, address: str, model: str) -> None:
|
|
write(
|
|
os.path.join(
|
|
self.proc_root, "driver", "nvidia", "gpus", address, "information"
|
|
),
|
|
f"Model: \t {model}\nIRQ: \t 62\n",
|
|
)
|
|
|
|
def test_the_model_name_is_read_from_proc(self):
|
|
self._add_gpu("0000:01:00.0", "NVIDIA GeForce RTX 3060")
|
|
|
|
gpu = self.probe()["onnx:nvidia"]
|
|
|
|
self.assertEqual(gpu.name, "NVIDIA GeForce RTX 3060")
|
|
self.assertEqual(gpu.units[0].device, "onnx:0")
|
|
|
|
def test_multiple_gpus_are_indexed(self):
|
|
self._add_gpu("0000:01:00.0", "NVIDIA GeForce RTX 3060")
|
|
self._add_gpu("0000:02:00.0", "NVIDIA GeForce RTX 4090")
|
|
|
|
gpu = self.probe()["onnx:nvidia"]
|
|
|
|
self.assertEqual(gpu.name, "NVIDIA GPU")
|
|
self.assertEqual([unit.device for unit in gpu.units], ["onnx:0", "onnx:1"])
|
|
self.assertEqual(gpu.units[1].label, "NVIDIA GeForce RTX 4090")
|
|
|
|
def test_a_jetson_runs_through_tensorrt(self):
|
|
write(os.path.join(self.etc_root, "nv_tegra_release"), "# R36 (release)")
|
|
|
|
self.assertEqual(self.probe()["tensorrt"].units[0].device, "tensorrt:0")
|
|
|
|
|
|
class TestAccelerators(HardwareProbeTestCase):
|
|
def test_the_neural_engine_is_found_by_lighters_provider_library(self):
|
|
write(os.path.join(self.lib_root, "lighter", "liblighter_ane_ep.so"))
|
|
|
|
with patch.dict(os.environ, clear=False) as env:
|
|
env.pop("LIGHTER_ANE_EP", None)
|
|
ane = self.probe()["onnx:lighter"]
|
|
|
|
self.assertEqual(ane.detector, "onnx")
|
|
self.assertEqual(ane.units[0].device, "onnx")
|
|
self.assertEqual(ane.units[0].label, "Neural Engine")
|
|
|
|
def test_the_neural_engine_is_found_where_lighter_ane_ep_points(self):
|
|
library = os.path.join(self.root.name, "elsewhere", "liblighter_ane_ep.so")
|
|
write(library)
|
|
|
|
with patch.dict(os.environ, {"LIGHTER_ANE_EP": library}):
|
|
self.assertIn("onnx:lighter", self.probe())
|
|
|
|
def test_no_neural_engine_is_reported_without_the_library(self):
|
|
with patch.dict(os.environ, clear=False) as env:
|
|
env.pop("LIGHTER_ANE_EP", None)
|
|
self.assertNotIn("onnx:lighter", self.probe())
|
|
|
|
def test_hailo_is_found_by_its_device_node(self):
|
|
write(os.path.join(self.dev_root, "hailo0"))
|
|
|
|
self.assertEqual(self.probe()["hailo"].units[0].device, "hailo:PCIe")
|
|
|
|
def test_each_memryx_node_is_a_unit(self):
|
|
write(os.path.join(self.dev_root, "memx0"))
|
|
write(os.path.join(self.dev_root, "memx1"))
|
|
|
|
memryx = self.probe()["memryx"]
|
|
|
|
self.assertEqual(
|
|
[unit.device for unit in memryx.units],
|
|
["memryx:PCIe:0", "memryx:PCIe:1"],
|
|
)
|
|
self.assertFalse(memryx.unlimited)
|
|
|
|
def test_each_deepx_node_is_a_unit(self):
|
|
write(os.path.join(self.dev_root, "dxrt0"))
|
|
write(os.path.join(self.dev_root, "dxrt1"))
|
|
|
|
deepx = self.probe()["deepx"]
|
|
|
|
self.assertEqual(
|
|
[unit.device for unit in deepx.units],
|
|
["deepx:PCIe:0", "deepx:PCIe:1"],
|
|
)
|
|
|
|
def test_a_deepx_npu_is_unlimited(self):
|
|
# the host daemon multiplexes, so one module takes several processes
|
|
write(os.path.join(self.dev_root, "dxrt0"))
|
|
|
|
self.assertTrue(self.probe()["deepx"].unlimited)
|
|
|
|
def test_no_deepx_is_reported_without_a_node(self):
|
|
self.assertNotIn("deepx", self.probe())
|
|
|
|
def test_an_axelera_metis_is_a_single_unit(self):
|
|
write(os.path.join(self.dev_root, "metis0"))
|
|
|
|
axelera = self.probe()["axelera"]
|
|
|
|
self.assertEqual(axelera.units[0].device, "axelera:PCIe")
|
|
self.assertEqual(axelera.count, 1)
|
|
|
|
def test_a_supported_rockchip_soc_is_reported(self):
|
|
write(
|
|
os.path.join(self.proc_root, "device-tree", "compatible"),
|
|
"rockchip,rk3588\x00",
|
|
)
|
|
|
|
self.assertEqual(self.probe()["rknn"].units[0].device, "rknn")
|
|
|
|
def test_an_unsupported_soc_is_ignored(self):
|
|
write(
|
|
os.path.join(self.proc_root, "device-tree", "compatible"),
|
|
"nvidia,tegra\x00",
|
|
)
|
|
|
|
self.assertNotIn("rknn", self.probe())
|
|
|
|
def test_axengine_is_found_by_its_control_node(self):
|
|
write(os.path.join(self.dev_root, "axcl_host"))
|
|
|
|
self.assertEqual(self.probe()["axengine"].units[0].device, "axengine")
|
|
|
|
def test_synaptics_is_found_by_its_device_node(self):
|
|
write(os.path.join(self.dev_root, "synap"))
|
|
|
|
self.assertEqual(self.probe()["synaptics"].units[0].device, "synaptics")
|
|
|
|
|
|
class TestProber(HardwareProbeTestCase):
|
|
def test_the_result_is_cached_until_refreshed(self):
|
|
prober = HardwareProber()
|
|
self.assertNotIn("edgetpu:pci", {found.key for found in prober.probe()})
|
|
|
|
os.makedirs(os.path.join(self.sys_root, "class", "apex", "apex_0"))
|
|
|
|
self.assertNotIn("edgetpu:pci", {found.key for found in prober.probe()})
|
|
self.assertIn(
|
|
"edgetpu:pci", {found.key for found in prober.probe(refresh=True)}
|
|
)
|
|
|
|
def test_a_failing_probe_does_not_break_the_rest(self):
|
|
with patch.object(hardware, "detect_hailo", side_effect=OSError("boom")):
|
|
self.assertIn("cpu", self.probe())
|
|
|
|
def test_unlimited_tracks_the_detector_shareable_flag(self):
|
|
for name in ("apex_0",):
|
|
os.makedirs(os.path.join(self.sys_root, "class", "apex", name))
|
|
write(os.path.join(self.dev_root, "memx0"))
|
|
self.drm.return_value = {"0000:00:02.0": "i915"}
|
|
|
|
for found in self.probe().values():
|
|
config_class = config_types.get(found.detector)
|
|
|
|
if config_class is None:
|
|
continue
|
|
|
|
with self.subTest(hardware=found.key):
|
|
self.assertEqual(found.unlimited, config_class.shareable)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main(verbosity=2)
|