* Log top-level errors.
svn path=/nixos/trunk/; revision=25482
This commit is contained in:
parent
261430df54
commit
8f831338df
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user