Skip to content

Commit a84ecc4

Browse files
committed
options-lib_dcu.robot Boot System: Dont leave windows if already booted
Signed-off-by: Filip Gołaś <[email protected]>
1 parent df3f13b commit a84ecc4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/options/options-lib_dcu.robot

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ Boot System Or From Connected Disk
181181
[Documentation] Keyword makes the DUT to reboot in chosen OS.
182182
[Arguments] ${env_id}
183183

184+
IF '${BOOTED_OS_ID}' == '${env_id}'
185+
Log Target OS already booted
186+
RETURN
187+
END
188+
184189
IF '${BOOTED_OS_ID}'.startswith('3') # Windows
185190
Execute Reboot Command windows
186191
Boot System Or From Connected Disk ${DEFAULT_BOOT_OS_ID}
@@ -193,11 +198,6 @@ Boot System Or From Connected Disk
193198
Login To Linux
194199
Switch To Root User
195200

196-
IF '${BOOTED_OS_ID}' == '${env_id}'
197-
Log Target OS already booted
198-
RETURN
199-
END
200-
201201
${os_boot_id}= Set Nextboot ${env_id}
202202
Write Into Terminal reboot
203203

0 commit comments

Comments
 (0)