diff options
author | Jascha Geerds <jg@ekby.de> | 2015-05-14 17:45:59 +0200 |
---|---|---|
committer | Jascha Geerds <jg@ekby.de> | 2015-05-14 17:46:32 +0200 |
commit | 779b65f0193ca0d18b3d815a99cccd5886ef2126 (patch) | |
tree | c674dd9bdce9c417c904ccf5c788a9e0559248b9 /nixos/tests/printing.nix | |
parent | 8714140e31ccde039dc37ed817920889ef5e8b61 (diff) |
cups: Second attempt to fix our printing tests; add more sleep statements
Diffstat (limited to 'nixos/tests/printing.nix')
-rw-r--r-- | nixos/tests/printing.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/tests/printing.nix b/nixos/tests/printing.nix index e8c41140045c2..1e3a0057c657b 100644 --- a/nixos/tests/printing.nix +++ b/nixos/tests/printing.nix @@ -68,6 +68,7 @@ import ./make-test.nix ({pkgs, ... }: { # Print the file on the client. $client->succeed("lp $file"); + $client->sleep(10); $client->succeed("lpq") =~ /active.*root.*$fn/ or die; # Ensure that a raw PCL file appeared in the server's queue @@ -75,11 +76,13 @@ import ./make-test.nix ({pkgs, ... }: { # course, since there is no actual USB printer attached, the # file will stay in the queue forever. $server->waitForFile("/var/spool/cups/d00001-001"); + $server->sleep(10); $server->succeed("lpq -a") =~ /$fn/ or die; # Delete the job on the client. It should disappear on the # server as well. $client->succeed("lprm"); + $client->sleep(10); $client->succeed("lpq -a") =~ /no entries/; Machine::retry sub { return 1 if $server->succeed("lpq -a") =~ /no entries/; |