diff options
author | Jamin Lin <jamin_lin@aspeedtech.com> | 2024-07-04 16:29:22 +0800 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2024-07-09 08:05:44 +0200 |
commit | d847ea7cfc6321e2519f587d4077428d90557178 (patch) | |
tree | d93799cd4a050048eef0a204b135ec62c6ce0344 /tests | |
parent | d8b76d9ab1860d116375b657605312e5ad493fdd (diff) | |
download | qemu-d847ea7cfc6321e2519f587d4077428d90557178.zip qemu-d847ea7cfc6321e2519f587d4077428d90557178.tar.gz qemu-d847ea7cfc6321e2519f587d4077428d90557178.tar.bz2 |
machine_aspeed.py: update to test network for AST2700
Update test case to test network connection via SSH.
Test command:
```
cd build
pyvenv/bin/avocado run ../qemu/tests/avocado/machine_aspeed.py:AST2x00MachineSDK.test_aarch64_ast2700_evb_sdk_v09_02
```
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/avocado/machine_aspeed.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/avocado/machine_aspeed.py b/tests/avocado/machine_aspeed.py index 13fe128..f66ad38 100644 --- a/tests/avocado/machine_aspeed.py +++ b/tests/avocado/machine_aspeed.py @@ -313,14 +313,14 @@ class AST2x00MachineSDK(QemuSystemTest, LinuxSSHMixIn): def do_test_aarch64_aspeed_sdk_start(self, image): self.vm.set_console() - self.vm.add_args('-drive', 'file=' + image + ',if=mtd,format=raw') + self.vm.add_args('-drive', 'file=' + image + ',if=mtd,format=raw', + '-net', 'nic', '-net', 'user,hostfwd=:127.0.0.1:0-:22') self.vm.launch() self.wait_for_console_pattern('U-Boot 2023.10') self.wait_for_console_pattern('## Loading kernel from FIT Image') self.wait_for_console_pattern('Starting kernel ...') - self.wait_for_console_pattern("systemd[1]: Hostname set to") @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') @@ -436,4 +436,6 @@ class AST2x00MachineSDK(QemuSystemTest, LinuxSSHMixIn): self.vm.add_args('-smp', str(num_cpu)) self.do_test_aarch64_aspeed_sdk_start(image_dir + 'image-bmc') + self.wait_for_console_pattern('nodistro.0 ast2700-default ttyS12') + self.ssh_connect('root', '0penBmc', False) |