Skip to content

Commit

Permalink
automated: linux: fix lmp-device register error message matching
Browse files Browse the repository at this point in the history
Backend error message has changed and the test no longer matches the
proper string. This patch fixes the issue

Signed-off-by: Milosz Wasilewski <[email protected]>
  • Loading branch information
mwasilew authored and roxell committed Sep 19, 2024
1 parent 7c4e5b4 commit c622b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automated/linux/lmp-device-register/lmp-device-register.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c622b49

Please sign in to comment.