summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-04-18 13:40:35 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-04-18 13:40:35 +0200
commit55a82158e20bba62400a401c729357cce25d7d52 (patch)
tree31f329594cb49acfa4db2a4e94bb4d85ba89df9a /nixos
parent454a64caff37e68dc61d757591a4e0e041861391 (diff)
downloadnixpkgs-55a82158e20bba62400a401c729357cce25d7d52.tar
nixpkgs-55a82158e20bba62400a401c729357cce25d7d52.tar.gz
nixpkgs-55a82158e20bba62400a401c729357cce25d7d52.tar.bz2
nixpkgs-55a82158e20bba62400a401c729357cce25d7d52.tar.lz
nixpkgs-55a82158e20bba62400a401c729357cce25d7d52.tar.xz
nixpkgs-55a82158e20bba62400a401c729357cce25d7d52.tar.zst
nixpkgs-55a82158e20bba62400a401c729357cce25d7d52.zip
Revert "nixos.tests.printing: fix"
This reverts commit 49894ac857fd1206ac111d6adbf6e9f6e640d795.

Reverting in deference to https://github.com/NixOS/nixpkgs/issues/14782
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/printing.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/tests/printing.nix b/nixos/tests/printing.nix
index adbef228c2f..10d69b446cd 100644
--- a/nixos/tests/printing.nix
+++ b/nixos/tests/printing.nix
@@ -40,9 +40,9 @@ import ./make-test.nix ({pkgs, ... }: {
       $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 http://localhost:631/");
-      $client->succeed("curl http://server:631/");
-      $server->fail("curl --connect-timeout 2  http://client:631/");
+      $client->succeed("curl --fail http://localhost:631/");
+      $client->succeed("curl --fail http://server:631/");
+      $server->fail("curl --fail --connect-timeout 2  http://client:631/");
 
       # Add a HP Deskjet printer connected via USB to the server.
       $server->succeed("lpadmin -p DeskjetLocal -E -v usb://foobar/printers/foobar");
@@ -60,10 +60,10 @@ import ./make-test.nix ({pkgs, ... }: {
       $client->succeed("lpq") =~ /DeskjetRemote is ready.*no entries/s or die;
 
       # Test printing various file types.
-      foreach my $file ("${pkgs.groff.doc}/share/doc/examples/mom/penguin.pdf",
-                        "${pkgs.groff.doc}/share/doc/meref.ps",
+      foreach my $file ("${pkgs.groff.doc}/share/doc/*/examples/mom/penguin.pdf",
+                        "${pkgs.groff.doc}/share/doc/*/meref.ps",
                         "${pkgs.cups}/share/doc/cups/images/cups.png",
-                        "${pkgs.pcre.doc}/share/doc/pcre.txt")
+                        "${pkgs.pcre.doc}/share/doc/pcre/pcre.txt")
       {
           $file =~ /([^\/]*)$/; my $fn = $1;