]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test_ukify: propagate failure
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 22 Apr 2023 09:20:11 +0000 (11:20 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 5 May 2023 16:42:37 +0000 (18:42 +0200)
Oops. This explains why the tests were "passing" in CI even
though a direct pytest invocation would fail.

src/ukify/test/test_ukify.py

index 3ffa8fe84387d13716750d2947ea2aeef4ebf375..1013f649bed464568dc06221a10474ef7b7a1b46 100755 (executable)
@@ -495,4 +495,4 @@ def test_pcr_signing2(kernel_initrd, tmpdir):
     assert len(sig['sha1']) == 6   # six items for six phases paths
 
 if __name__ == '__main__':
-    pytest.main([__file__, '-v'])
+    sys.exit(pytest.main([__file__, '-v']))