tests/extern: Fix small errors

1. The lowquota test used the wrong fetchmail username and password
2. When running interactively repeatedly mkdir fails since dir exists
This commit is contained in:
Brian Olsen 2018-05-04 18:12:05 +02:00 committed by Ruben Maher
parent 8a27b941bf
commit 0c883d8bcd

View file

@ -87,7 +87,7 @@ import <nixpkgs/nixos/tests/make-test.nix> {
"root/.fetchmailRcLowQuota" = {
text = ''
poll ${serverIP} with proto IMAP
user 'lowquota\@example.com' there with password 'user1' is 'root' here
user 'lowquota@example.com' there with password 'user2' is 'root' here
mda procmail
'';
mode = "0700";
@ -217,7 +217,7 @@ import <nixpkgs/nixos/tests/make-test.nix> {
$client->waitForUnit("multi-user.target");
$client->execute("cp -p /etc/root/.* ~/");
$client->succeed("mkdir ~/mail");
$client->succeed("mkdir -p ~/mail");
$client->succeed("ls -la ~/ >&2");
$client->succeed("cat ~/.fetchmailrc >&2");
$client->succeed("cat ~/.procmailrc >&2");