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 committed Aug 28, 2024
1 parent 8aa8dbf commit 3b7c6f6
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 3b7c6f6

Please sign in to comment.