Skip to content

Commit 7a6da61

Browse files
DaanDeMeyerbluca
authored andcommitted
ukify: Skip test on architectures without UEFI
(cherry picked from commit 5121f7c) (cherry picked from commit c355457) (cherry picked from commit 4a86d30)
1 parent edec5cc commit 7a6da61

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ukify/test/test_ukify.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
sys.path.append(os.path.dirname(__file__) + '/..')
3737
import ukify
3838

39+
# Skip if we're running on an architecture that does not use UEFI.
40+
try:
41+
ukify.guess_efi_arch()
42+
except ValueError as e:
43+
print(str(e), file=sys.stderr)
44+
sys.exit(77)
45+
3946
build_root = os.getenv('PROJECT_BUILD_ROOT')
4047
try:
4148
slow_tests = bool(int(os.getenv('SYSTEMD_SLOW_TESTS', '1')))

0 commit comments

Comments
 (0)