diff options
author | Domen Kožar <domen@dev.si> | 2016-02-26 11:13:30 +0000 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2016-02-26 11:13:30 +0000 |
commit | a469681a5107fc72fbb724c2f01989358249fc10 (patch) | |
tree | 108a86535e8bd19b646df356e2bb694db2054ca9 /nixos | |
parent | c99d589162a488a2380152a505e40f0d62586e42 (diff) | |
parent | 8b124b752179a5e28dc75bf4adbfd6f49bb85cdb (diff) |
Merge pull request #13365 from abbradar/cups-second-attempt
CUPS update (second attempt)
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/printing.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/tests/printing.nix b/nixos/tests/printing.nix index 02980cee2fbdf..10d69b446cd7b 100644 --- a/nixos/tests/printing.nix +++ b/nixos/tests/printing.nix @@ -78,7 +78,7 @@ import ./make-test.nix ({pkgs, ... }: { # (showing that the right filters have been applied). Of # 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->waitForFile("/var/spool/cups/d*-001"); $server->sleep(10); $server->succeed("lpq -a") =~ /$fn/ or die; @@ -90,6 +90,9 @@ import ./make-test.nix ({pkgs, ... }: { Machine::retry sub { return 1 if $server->succeed("lpq -a") =~ /no entries/; }; + # The queue is empty already, so this should be safe. + # Otherwise, pairs of "c*"-"d*-001" files might persist. + $server->execute("rm /var/spool/cups/*"); }; } ''; |