tests: Tolerate init process pid != 1.
authorJames Page <james.page@ubuntu.com>
Thu, 20 Jun 2013 21:31:52 +0000 (22:31 +0100)
committerBen Pfaff <blp@nicira.com>
Thu, 20 Jun 2013 22:51:56 +0000 (15:51 -0700)
commit494a89e907d9dea4ef5db4afe74f6b0afd711bc0
tree4abd309a56d2cb220a578715c4c7d1eb3367cf60
parentebf409633e5976fd2dd837548159902aaafc4c8a
tests: Tolerate init process pid != 1.

On Ubuntu Saucy based desktops, upstart runs with user sessions
enabled which means that the init process under which a daemon
might run is not always pid = 1.

Instead of checking for pid = 1, check to ensure that the parent
pid of the monitor is not the pid of the shell that started it.

Signed-off-by: James Page <james.page@ubuntu.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/daemon-py.at
tests/daemon.at