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 <milosz.wasilewski@foundries.io>
diff --git a/automated/linux/lmp-device-register/lmp-device-register.sh b/automated/linux/lmp-device-register/lmp-device-register.sh
index e4adbd8..d07fdfc 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 @@
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"