Skip to content

Commit

Permalink
TODO and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pbo-linaro committed Nov 27, 2024
1 parent aa86bdb commit e5990c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/functional/test_aarch64_virt.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,17 @@ def test_aarch64_virt_rme(self):
self.vm.add_args('-append', 'root=/dev/vda')

self.vm.launch()
#######
# TODO: use self.exec_command_and_wait_for_pattern instead
self.wait_for_console_pattern('Welcome to Buildroot')
time.sleep(0.1)
exec_command(self, 'root')
time.sleep(0.1)

######
# TODO: catch error when executing || &print error, catch with
# console_pattern

# We now boot the (nested) guest VM
exec_command(self,
'qemu-system-aarch64 -M virt,gic-version=3 '
Expand All @@ -189,7 +195,7 @@ def test_aarch64_virt_rme(self):
'-serial stdio')
# Detect Realm activation during boot.
self.wait_for_console_pattern('SMC_RMI_REALM_ACTIVATE')
# Wait for boot to complete.
# Wait for (nested) guest boot to complete.
self.wait_for_console_pattern('Welcome to Buildroot')

if __name__ == '__main__':
Expand Down

0 comments on commit e5990c2

Please sign in to comment.