Skip to content

Commit 2571c68

Browse files
committed
dts-e2e: refactor code a little. Enable sshd in test setup
Signed-off-by: Michał Iwanicki <[email protected]>
1 parent 0de3f67 commit 2571c68

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dts/dts-e2e.robot

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,19 @@ Prepare E2E Test
165165
# TODO: needed by 'Go Through Initial Deployment' keyword for couple of
166166
# NovaCustom boards
167167
VAR ${DTS_TEST_BOARD_MODEL}= ${DTS_PLATFORM_VARIABLES}[${platform}][DTS_TEST_BOARD_MODEL] scope=TEST
168+
Clean Up DTS Environment
169+
Write Into Terminal dts-boot
170+
171+
Clean Up DTS Environment
172+
[Documentation] Remove and clean up everything that might affect tests.
173+
... Should be run in DTS shell
168174
Execute Command In Terminal
169175
... rm -rf /etc/cloud-pass /root/.mc /*.tar.gz /root/*.tar.gz /tmp/logs/*profile /tmp/dts-temp-files
170-
Write Into Terminal dts-boot
171176

172177
Prepare DTS Test
173178
[Documentation] Used as test setup. Starts new SSH session so we start
174179
... with clean shell environment for each test
180+
Execute Command In Terminal systemctl start sshd
175181
Start New DTS SSH Session In QEMU
176182

177183
Teardown Template E2E DTS Test
@@ -248,4 +254,3 @@ Prepare DTS E2E Test Suite
248254
VAR ${DEVICE_OS_PASSWORD}= ${EMPTY} scope=SUITE
249255
Power On And Enter DTS Shell
250256
Set Prompt For Terminal bash-5.2#
251-
Execute Command In Terminal systemctl start sshd

0 commit comments

Comments
 (0)