mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
cups: First attempt to fix our printing tests; wait until cups is fully initialized
This commit is contained in:
parent
e46a796f5d
commit
92317259ef
@ -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/");
|
||||
|
Loading…
Reference in New Issue
Block a user