3
0
Fork 0
forked from mirrors/nixpkgs

* 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}) {
$log->nest("running the VM test script", sub {
eval "$context $ENV{tests}";
die $@ if $@;
if ($@) {
$log->log("error: $@", { error => 1 });
die $@;
}
}, { expanded => 1 });
} else {
my $term = Term::ReadLine->new('nixos-vm-test');