* For debugging, if $tests is not set, read commands from stdin.
svn path=/nixos/trunk/; revision=19210
This commit is contained in:
parent
0ecac5a6f9
commit
5730c27aed
@ -20,8 +20,15 @@ sub startAll {
|
||||
|
||||
|
||||
sub runTests {
|
||||
eval "$context $ENV{tests}";
|
||||
die $@ if $@;
|
||||
if (defined $ENV{tests}) {
|
||||
eval "$context $ENV{tests}";
|
||||
die $@ if $@;
|
||||
} else {
|
||||
while (<STDIN>) {
|
||||
eval "$context $_\n";
|
||||
warn $@ if $@;
|
||||
}
|
||||
}
|
||||
|
||||
# Copy the kernel coverage data for each machine, if the kernel
|
||||
# has been compiled with coverage instrumentation.
|
||||
|
@ -62,7 +62,7 @@ rec {
|
||||
|
||||
sleep 10;
|
||||
|
||||
print STDERR $client->execute("DISPLAY=:0.0 scrot /hostfs/$ENV{out}/screen.png");
|
||||
print STDERR $client->mustSucceed("DISPLAY=:0.0 scrot /hostfs/$ENV{out}/screen.png");
|
||||
'';
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user