cups: First attempt to fix our printing tests; wait until cups is fully initialized

This commit is contained in:
Jascha Geerds 2015-05-13 14:22:06 +02:00
parent e46a796f5d
commit 92317259ef

View File

@ -34,6 +34,7 @@ import ./make-test.nix ({pkgs, ... }: {
# Make sure that cups is up on both sides.
$server->waitForUnit("cups.service");
$client->waitForUnit("cups.service");
$client->sleep(10); # wait until cups is fully initialized
$client->succeed("lpstat -r") =~ /scheduler is running/ or die;
$client->succeed("lpstat -H") =~ "/var/run/cups/cups.sock" or die;
$client->succeed("curl --fail http://localhost:631/");