[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 07/10] tests/functional/test_ppc64_hv: Update repo management
From: |
Thomas Huth |
Subject: |
[PULL 07/10] tests/functional/test_ppc64_hv: Update repo management |
Date: |
Thu, 2 Jan 2025 11:31:35 +0100 |
From: Nicholas Piggin <npiggin@gmail.com>
`setup-apkrepos` can be used to set repos rather than open-coding URLs.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-ID: <20241220024617.1968556-4-npiggin@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
tests/functional/test_ppc64_hv.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/functional/test_ppc64_hv.py
b/tests/functional/test_ppc64_hv.py
index 2182a68c91..e0dffb1f15 100755
--- a/tests/functional/test_ppc64_hv.py
+++ b/tests/functional/test_ppc64_hv.py
@@ -81,6 +81,10 @@ def do_start_alpine(self):
exec_command_and_wait_for_pattern(self, 'date -s "' +
datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S' + '"'), ps1)
ps1='alpine:~#'
exec_command_and_wait_for_pattern(self, 'setup-alpine -qe', ps1)
+ exec_command_and_wait_for_pattern(self, 'setup-apkrepos -c1', ps1)
+ exec_command_and_wait_for_pattern(self, 'apk update', ps1)
+ # Could upgrade here but it usually should not be necessary
+ # exec_command_and_wait_for_pattern(self, 'apk upgrade --available',
ps1)
def do_stop_alpine(self):
exec_command(self, 'echo "TEST ME"')
@@ -91,9 +95,6 @@ def do_stop_alpine(self):
def do_setup_kvm(self):
ps1='alpine:~#'
- exec_command_and_wait_for_pattern(self, 'echo
http://dl-cdn.alpinelinux.org/alpine/v3.18/main > /etc/apk/repositories', ps1)
- exec_command_and_wait_for_pattern(self, 'echo
http://dl-cdn.alpinelinux.org/alpine/v3.18/community >> /etc/apk/repositories',
ps1)
- exec_command_and_wait_for_pattern(self, 'apk update', ps1)
exec_command_and_wait_for_pattern(self, 'apk add qemu-system-ppc64',
ps1)
exec_command_and_wait_for_pattern(self, 'modprobe kvm-hv', ps1)
--
2.47.1
- [PULL 00/10] Functional test improvements and fixes, Thomas Huth, 2025/01/02
- [PULL 01/10] docs: update copyright date to the year 2025, Thomas Huth, 2025/01/02
- [PULL 03/10] tests/functional/test_vnc: Do not use a hard-coded VNC port, Thomas Huth, 2025/01/02
- [PULL 02/10] tests/functional: Convert the vnc test, Thomas Huth, 2025/01/02
- [PULL 04/10] tests/functional/test_vnc: Remove the test_no_vnc test, Thomas Huth, 2025/01/02
- [PULL 05/10] tests/functional: Extract the find_free_ports() function into a helper file, Thomas Huth, 2025/01/02
- [PULL 07/10] tests/functional/test_ppc64_hv: Update repo management,
Thomas Huth <=
- [PULL 06/10] tests/functional/test_ppc64_hv: Simplify console handling, Thomas Huth, 2025/01/02
- [PULL 08/10] tests/functional/test_ppc64_hv: Update to Alpine 3.21.0, Thomas Huth, 2025/01/02
- [PULL 10/10] tests/functional/test_arm_quanta_gsj: Fix broken test, Thomas Huth, 2025/01/02
- [PULL 09/10] tests/functional/test_rx_gdbsim: Use stable URL for test_linux_sash, Thomas Huth, 2025/01/02
- Re: [PULL 00/10] Functional test improvements and fixes, Stefan Hajnoczi, 2025/01/02