From 026f70e063f38fccac16c278c3973fe539f76979 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 23 Aug 2023 09:12:30 -0700 Subject: [PATCH] webui: only select disk if we have more than 1 Signed-off-by: Adam Williamson --- tests/disk_guided_empty.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/disk_guided_empty.pm b/tests/disk_guided_empty.pm index a374418a..d23833d7 100644 --- a/tests/disk_guided_empty.pm +++ b/tests/disk_guided_empty.pm @@ -14,8 +14,10 @@ sub run { # long term we'll want two paths through select_disks or # a webui_select_disks, but for now, just throw it in here # as it's simple on this single path - assert_and_click "anaconda_webui_disk_select"; - assert_and_click "anaconda_install_destination_select_disk_1"; + if (get_var("NUMDISKS") > 1) { + assert_and_click "anaconda_webui_disk_select"; + assert_and_click "anaconda_install_destination_select_disk_1"; + } # assume default selection is the appropriate one; if it # isn't, we'll fail soon enough wait_screen_change { assert_and_click "anaconda_webui_next"; };