lol

nixos tests: waitForText: output the detected screen content prior to the last attempt

machine: Last chance to match /(?^:BALICE)/ on the screen, which currently contains:
machine: performing optical character recognition
machine: sending monitor command: screendump /tmp/nix-build-vm-test-run-sddm.drv-0/ocrin.ppm
machine: Session Layout

O O

0 1 : 0 9

Wednesday, June 21, 2017

|_ I

Select your user and enter password

+6
+6
nixos/lib/test-driver/Machine.pm
··· 572 572 my ($self, $regexp) = @_; 573 573 $self->nest("waiting for $regexp to appear on the screen", sub { 574 574 retry sub { 575 + my ($retries_remaining) = @_; 576 + if ($retries_remaining == 0) { 577 + $self->log("Last chance to match /$regexp/ on the screen, which currently contains:"); 578 + $self->log($self->getScreenText); 579 + } 580 + 575 581 return 1 if $self->getScreenText =~ /$regexp/; 576 582 } 577 583 });