From 55a6469ba36e840e2388673318b51bc77cb3f7ba Mon Sep 17 00:00:00 2001 From: Jascha Geerds Date: Sat, 2 May 2015 15:33:22 +0200 Subject: [PATCH] cups: Fix printing tests It seems like there's an upstream bug in the "lpstat" command. We need to specify the server's port. Further information: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711327 [root@client:~]# lpstat -H /var/run/cups/cups.sock [root@client:~]# lpstat -h server -H /var/run/cups/cups.sock:631 [root@client:~]# CUPS_SERVER=server lpstat -H server:631 [root@client:~]# lpstat -h server:631 -H server:631 --- nixos/tests/printing.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/printing.nix b/nixos/tests/printing.nix index ba10f23582d7..65d573e690b5 100644 --- a/nixos/tests/printing.nix +++ b/nixos/tests/printing.nix @@ -48,7 +48,7 @@ import ./make-test.nix ({pkgs, ... }: { # Do some status checks. $client->succeed("lpstat -a") =~ /DeskjetRemote accepting requests/ or die; - $client->succeed("lpstat -h server -a") =~ /DeskjetLocal accepting requests/ or die; + $client->succeed("lpstat -h server:631 -a") =~ /DeskjetLocal accepting requests/ or die; $client->succeed("cupsdisable DeskjetRemote"); $client->succeed("lpq") =~ /DeskjetRemote is not ready.*no entries/s or die; $client->succeed("cupsenable DeskjetRemote");