From 5164ca570faf0ea4ddab8b6f9f9e4bfc8428c82d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 13 Oct 2011 14:08:00 +0000 Subject: [PATCH] * Test whether restarting Upstart jobs works properly if there are dependent jobs with multiple dependencies (such as "started portmap and started nfs-kernel-exports"). This currently *doesn't* work (and frequently breaks the NFS server in the build farm :-) ). svn path=/nixos/trunk/; revision=29826 --- tests/nfs.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/nfs.nix b/tests/nfs.nix index e4576e451b8..e8da5ce6770 100644 --- a/tests/nfs.nix +++ b/tests/nfs.nix @@ -48,6 +48,12 @@ in $client2->succeed("echo bla > /data/bar"); $server->succeed("test -e /data/bar"); + # Test whether restarting the ‘nfs-kernel-exports’ job works + # correctly. In Upstart 0.6.7 this fails because the jobs that + # depend on ‘nfs-kernel-exports’ are stopped but not restarted. + $server->succeed("restart nfs-kernel-exports"); + $client2->succeed("echo bla >> /data/bar"); + # Test whether we can get a lock. !!! This step takes about 90 # seconds because the NFS server waits that long after booting # before accepting new locks.