Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dasdfmt more robust #1389

Merged
merged 1 commit into from
May 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 4 additions & 6 deletions tests/installation/bootloader_s390.pm
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,14 @@ sub format_dasd() {
select_console('install-shell');

# bring dasd online
script_run("dasd_configure 0.0.0150 1");
assert_script_run("dasd_configure 0.0.0150 1");

# make sure that there is a dasda device
assert_script_run("(lsdasd | tee /dev/$serialdev)");
assert_script_run("lsdasd | tee /dev/$serialdev");
assert_screen("ensure-dasd-exists");

# format dasda (this can take up to 15 minutes depending on disk size)
type_string("dasdfmt -b 4096 -p /dev/dasda; echo dasdfmt-status-$?- > /dev/$serialdev\n");
sleep 2;
type_string("yes\n");
# format dasda (this can take up to 20 minutes depending on disk size)
type_string("echo yes | dasdfmt -b 4096 -p /dev/dasda; echo dasdfmt-status-$?- > /dev/$serialdev\n");
wait_serial("dasdfmt-status-0-", 1200) || die "dasdfmt could not finish";
}

Expand Down