From 5555496f4f07fff62306f677d9032fab08a030a8 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Fri, 30 Jan 2026 12:43:29 +0100 Subject: [PATCH] blktrace: Block test if blktrace is not installed Signed-off-by: Robert Baldyga --- test_tools/blktrace.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_tools/blktrace.py b/test_tools/blktrace.py index 045742e..0abc0ca 100644 --- a/test_tools/blktrace.py +++ b/test_tools/blktrace.py @@ -1,6 +1,7 @@ # # Copyright(c) 2019-2022 Intel Corporation # Copyright(c) 2023-2024 Huawei Technologies Co., Ltd. +# Copyright(c) 2026 Unvertical # SPDX-License-Identifier: BSD-3-Clause # @@ -96,6 +97,9 @@ def __str__(self): class BlkTrace: def __init__(self, device: Device, *masks: BlkTraceMask): + output = TestRun.executor.run("command -v blktrace") + if output.exit_code != 0: + TestRun.block("blktrace is not installed") self._mount_debugfs() if device is None: raise Exception("Device not provided")