summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJascha Geerds <jg@ekby.de>2015-05-02 15:33:22 +0200
committerDomen Kožar <domen@dev.si>2015-05-10 12:41:21 +0200
commit55a6469ba36e840e2388673318b51bc77cb3f7ba (patch)
treecddc05854d0fc98c1937d7f7296634b656e4be1a /nixos
parent3710dbec0556b407915f133e480600e9882c1c3a (diff)
downloadnixpkgs-55a6469ba36e840e2388673318b51bc77cb3f7ba.tar
nixpkgs-55a6469ba36e840e2388673318b51bc77cb3f7ba.tar.gz
nixpkgs-55a6469ba36e840e2388673318b51bc77cb3f7ba.tar.bz2
nixpkgs-55a6469ba36e840e2388673318b51bc77cb3f7ba.tar.lz
nixpkgs-55a6469ba36e840e2388673318b51bc77cb3f7ba.tar.xz
nixpkgs-55a6469ba36e840e2388673318b51bc77cb3f7ba.tar.zst
nixpkgs-55a6469ba36e840e2388673318b51bc77cb3f7ba.zip
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
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/printing.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/printing.nix b/nixos/tests/printing.nix
index ba10f23582d..65d573e690b 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");