aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-12-11 15:52:44 +0000
committerRomain d'Alverny <rda@mageia.org>2011-12-11 15:52:44 +0000
commit3d65a688820ffac462950fdb03c94aa8af84916e (patch)
tree473a888a92b3fc494567de2b6038d5dbcf42a213
parent1e65efa6a3d996c34c902f2b04257307c2175776 (diff)
downloadisocheck-3d65a688820ffac462950fdb03c94aa8af84916e.tar
isocheck-3d65a688820ffac462950fdb03c94aa8af84916e.tar.gz
isocheck-3d65a688820ffac462950fdb03c94aa8af84916e.tar.bz2
isocheck-3d65a688820ffac462950fdb03c94aa8af84916e.tar.xz
isocheck-3d65a688820ffac462950fdb03c94aa8af84916e.zip
fix medium variant test, check spent time testing
-rw-r--r--test_iso.pl16
1 files changed, 9 insertions, 7 deletions
diff --git a/test_iso.pl b/test_iso.pl
index ba9aab2..bd3e03d 100644
--- a/test_iso.pl
+++ b/test_iso.pl
@@ -45,6 +45,8 @@ my $harness = TAP::Harness->new({
]
});
+my $ts0 = time();
+
print "# Date: ", `date --rfc-3339='ns' -u`;
print "# Testing: $image_path\n";
print "# Host: ", `uname -n`;
@@ -60,19 +62,19 @@ print "... ok\n";
my $name = basename($image_path);
my %info = Tools::parse_mageia_iso_name($name);
-# FIXME the difference is actually regular versus LiveCD
-if ($info{medium} eq "DVD") {
+if ($info{variant} =~ m/^LiveCD/) {
+ # TODO: LiveCD specific tests
+} else {
$harness->runtests(glob_('t_install_iso/*.t'));
-} elsif ($info{medium} eq "CD") {
- # LiveCD specific
- # CD specific
}
# Umounting the ISO
print "# Umounting ISO\n";
-# FIXME this fails sometimes; no idea why. Force umount?
+# FIXME this fails sometimes (with LiveCDs); no idea why. Force umount?
system 'umount /media/iso_check';
system 'rm -r /media/iso_check';
print "... ok\n";
print "# Date: ", `date --rfc-3339='ns' -u`;
-print "# Test is over.\n";
+
+my $tdiff = time() - $ts0;
+print "# Tested $name in $tdiff seconds.\n";