Covered a mount umount routine with ne genext2f in tests, and removed some unecessary

verbosity which was basically just a repeat of itself.
This commit is contained in:
freesource
2001-11-29 07:01:14 +00:00
parent eeb7a7a56d
commit b883f0e687
+6 -4
View File
@@ -1196,7 +1196,7 @@ sub create_filesystem {
$copied{$devino} = $floppy_file;
}
}
info(1, "$file -> $floppy_file\n");
##info(1, "$file -> $floppy_file\n");
copy_strip_file($file, $floppy_file, $obj_count, $strip_lib,
$strip_bin, $strip_module);
@@ -2165,9 +2165,11 @@ sub which_tests {
# This goes first so we define %Termcap for use in children
## This now checks for ncurse setups, too.
return "ERROR" if errm(mount_device($device,$mount_point)) == 2;
check_termcap();
return "ERROR" if errum(sys("umount $mount_point")) == 2;
if ( $fs_type ne "genext2fs" ) {
return "ERROR" if errm(mount_device($device,$mount_point)) == 2;
check_termcap();
return "ERROR" if errum(sys("umount $mount_point")) == 2;
}
##### Here are the tests.
my $t_fstab = $chosen_tests->{30}{test_fstab};