* For debugging, if $tests is not set, read commands from stdin.

svn path=/nixos/trunk/; revision=19210
This commit is contained in:
Eelco Dolstra 2010-01-04 16:30:54 +00:00
parent 0ecac5a6f9
commit 5730c27aed
2 changed files with 10 additions and 3 deletions

View File

@ -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.

View File

@ -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");
'';
}