* Log top-level errors.

svn path=/nixos/trunk/; revision=25482
This commit is contained in:
Eelco Dolstra 2011-01-09 22:52:27 +00:00
parent 261430df54
commit 8f831338df

View File

@ -66,7 +66,10 @@ sub runTests {
if (defined $ENV{tests}) { if (defined $ENV{tests}) {
$log->nest("running the VM test script", sub { $log->nest("running the VM test script", sub {
eval "$context $ENV{tests}"; eval "$context $ENV{tests}";
die $@ if $@; if ($@) {
$log->log("error: $@", { error => 1 });
die $@;
}
}, { expanded => 1 }); }, { expanded => 1 });
} else { } else {
my $term = Term::ReadLine->new('nixos-vm-test'); my $term = Term::ReadLine->new('nixos-vm-test');