forked from mirrors/nixpkgs
* 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}) {
|
||||
$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');
|
||||
|
|
Loading…
Reference in a new issue