From 3b7c6f6ac5fc5fbc710a5e41e747f050c2a2f224 Mon Sep 17 00:00:00 2001 From: Milosz Wasilewski Date: Wed, 28 Aug 2024 10:01:11 +0100 Subject: [PATCH] automated: linux: fix lmp-device register error message matching Backend error message has changed and the test no longer matches the proper string. This patch fixes the issue Signed-off-by: Milosz Wasilewski --- automated/linux/lmp-device-register/lmp-device-register.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated/linux/lmp-device-register/lmp-device-register.sh b/automated/linux/lmp-device-register/lmp-device-register.sh index e4adbd857..d07fdfc2d 100755 --- a/automated/linux/lmp-device-register/lmp-device-register.sh +++ b/automated/linux/lmp-device-register/lmp-device-register.sh @@ -65,7 +65,7 @@ DEVICE_NAME=$(cat /etc/hostname) pipe0_status "lmp-device-register --name ${DEVICE_NAME} -T 123456789 -u ${REG_UUID} -m ${HSM_MODULE} -S 12345678 -P 87654321 2>&1" "tee ${OUTPUT}/registration.log" # shellcheck disable=SC2181 if [ $? -ne 0 ]; then - grep "Cannot find a user with the provided token" "${OUTPUT}/registration.log" + grep "Provided token value is not valid" "${OUTPUT}/registration.log" check_return "lmp-device-register-bad-token" else report_fail "lmp-device-register-bad-token"