aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/test_ppc64_hv.py
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2024-12-20 12:46:16 +1000
committerThomas Huth <thuth@redhat.com>2025-01-02 08:58:08 +0100
commite6c81cf3d00a769d105290699b4efc3aeff0c66d (patch)
treefd7f979a4afdb02641b02ce88fe6cf73faef5bfc /tests/functional/test_ppc64_hv.py
parent8c8dd70037952b3e6b700ecec7be829a5432a432 (diff)
downloadqemu-e6c81cf3d00a769d105290699b4efc3aeff0c66d.zip
qemu-e6c81cf3d00a769d105290699b4efc3aeff0c66d.tar.gz
qemu-e6c81cf3d00a769d105290699b4efc3aeff0c66d.tar.bz2
tests/functional/test_ppc64_hv: Update repo management
`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>
Diffstat (limited to 'tests/functional/test_ppc64_hv.py')
-rwxr-xr-xtests/functional/test_ppc64_hv.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/functional/test_ppc64_hv.py b/tests/functional/test_ppc64_hv.py
index 2182a68..e0dffb1 100755
--- a/tests/functional/test_ppc64_hv.py
+++ b/tests/functional/test_ppc64_hv.py
@@ -81,6 +81,10 @@ class HypervisorTest(QemuSystemTest):
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 @@ class HypervisorTest(QemuSystemTest):
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)