Skip to content

Commit 0de3f67

Browse files
committed
dts-lib: wait for checkpoint before writing DPP credentials
Signed-off-by: Michał Iwanicki <[email protected]>
1 parent 74c2f79 commit 0de3f67

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/dts-lib.robot

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ ${DTS_HEADS_SWITCH_QUESTION}= Would you like to switch to Dash
2222
${DTS_ME_WARN}=
2323
... Skip ME flashing and proceed with BIOS/firmware flashing/updating? (Y|n)
2424
${DTS_BOARD_QUESTION}= Choose your board model:
25+
${DPP_EMAIL_CHECKPOINT}= Enter DPP email:
26+
${DPP_PASSWORD_CHECKPOINT}= Enter paswword:
2527
# DTS initial deployment menupoints:
2628
${DTS_DCR_UEFI_MENUPOINT}= Community version
2729
${DTS_DPP_UEFI_MENUPOINT}= DPP version (coreboot + UEFI)
@@ -222,12 +224,13 @@ Provide DPP Credentials
222224

223225
# Enter email:
224226
Variable Should Exist ${DPP_EMAIL}
225-
Write Into Terminal ${DPP_EMAIL}
227+
Wait For Checkpoint And Write ${DPP_EMAIL_CHECKPOINT} ${DPP_EMAIL}
226228
# Enter password:
227229
Variable Should Exist ${DPP_PASSWORD}
228-
Write Into Terminal ${DPP_PASSWORD}
230+
Wait For Checkpoint And Write ${DPP_PASSWORD_CHECKPOINT} ${DPP_PASSWORD}
229231

230-
Wait For Checkpoint And Press Enter ${DTS_CONFIRM_CHECKPOINT}
232+
${out}= Wait For Checkpoint And Press Enter ${DTS_CONFIRM_CHECKPOINT}
233+
RETURN ${out}
231234

232235
Provide DPP Credentials Without Packages
233236
[Documentation] This KW automatically writes DPP credentials that do not
@@ -558,7 +561,7 @@ Execute Manual Step While Freeing Serial Connection
558561

559562
Check DPP Credentials In DTS
560563
[Documentation] This KW checks whether DTS saves provided credentials
561-
.... correctly.
564+
... correctly.
562565
[Arguments] ${dpp_email} ${dpp_password}
563566
${credentials}= Execute Command In Terminal cat /etc/cloud-pass
564567

@@ -572,7 +575,7 @@ Check DPP Credentials In DTS
572575
END
573576

574577
# The first line should be email:
575-
${current_email}= Get Line ${credentials} 0
578+
${current_email}= Get Line ${credentials} 0
576579
# The second line should be password:
577580
${current_password}= Get Line ${credentials} 1
578581
IF '${current_email}' != '${dpp_email}'

0 commit comments

Comments
 (0)