From: Zbigniew Jędrzejewski-Szmek Date: Sat, 22 Apr 2023 09:20:11 +0000 (+0200) Subject: test_ukify: propagate failure X-Git-Tag: v254-rc1~548^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=041f536f9a9dfbf8023db680f536f0080ad054c1;p=thirdparty%2Fsystemd.git test_ukify: propagate failure Oops. This explains why the tests were "passing" in CI even though a direct pytest invocation would fail. --- diff --git a/src/ukify/test/test_ukify.py b/src/ukify/test/test_ukify.py index 3ffa8fe8438..1013f649bed 100755 --- a/src/ukify/test/test_ukify.py +++ b/src/ukify/test/test_ukify.py @@ -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']))