]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test/py: efi_secboot: remove unused function
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Mon, 20 Jul 2020 06:34:09 +0000 (15:34 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 22 Jul 2020 10:32:42 +0000 (12:32 +0200)
'tool_is_in_path' function is no longer used anywhere after Heinrich
has removed 'sudo' version of fixture setup.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
test/py/tests/test_efi_secboot/conftest.py

index c6709700a876398350b29c28002690dda47c4136..4073732da60167ebcaef752eea8de9bff684eeaf 100644 (file)
@@ -8,15 +8,6 @@ from subprocess import call, check_call, check_output, CalledProcessError
 import pytest
 from defs import *
 
-# from test/py/conftest.py
-
-
-def tool_is_in_path(tool):
-    for path in os.environ["PATH"].split(os.pathsep):
-        full_path = os.path.join(path, tool)
-        if os.path.isfile(full_path) and os.access(full_path, os.X_OK):
-            return True
-    return False
 
 #
 # Fixture for UEFI secure boot test