From 21d0178e9ad0993b1ada98f1d118f67d92ba132b Mon Sep 17 00:00:00 2001 From: Paul Gaiduk Date: Thu, 31 Oct 2024 12:22:54 +0100 Subject: [PATCH] Add better error mesage to ctrl_cert_change test Fix error message when server signing certificate does not match the uploaded one Signed-off-by: Paul Gaiduk --- tests/eclient/testdata/ctrl_cert_change.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/eclient/testdata/ctrl_cert_change.txt b/tests/eclient/testdata/ctrl_cert_change.txt index 50f41f29b..2987ad77f 100644 --- a/tests/eclient/testdata/ctrl_cert_change.txt +++ b/tests/eclient/testdata/ctrl_cert_change.txt @@ -74,3 +74,8 @@ test: EDEN={{EdenConfig "eden.root"}}/{{EdenConfig "eden.bin-dist"}}/{{EdenConfig "eden.eden-bin"}} $EDEN eve ssh cat /persist/certs/server-signing-cert.pem > /tmp/server-signing-cert.pem diff -Z /tmp/signing-new.pem /tmp/server-signing-cert.pem +status=$? +if [ $status -ne 0 ]; then + echo "Error: Current server signing certificate does not match the uploaded one." >&2 +fi +exit $status