From 779b65f0193ca0d18b3d815a99cccd5886ef2126 Mon Sep 17 00:00:00 2001 From: Jascha Geerds Date: Thu, 14 May 2015 17:45:59 +0200 Subject: [PATCH] cups: Second attempt to fix our printing tests; add more sleep statements --- nixos/tests/printing.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/tests/printing.nix b/nixos/tests/printing.nix index e8c41140045c..1e3a0057c657 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/;