tests: Allow unit tests to run as root.
authorEthan Jackson <ethan@nicira.com>
Fri, 18 Nov 2011 02:06:55 +0000 (18:06 -0800)
committerEthan Jackson <ethan@nicira.com>
Fri, 18 Nov 2011 21:48:57 +0000 (13:48 -0800)
commit579a77e024b93ba5dfb840468c2fcd804e576d7b
tree971171ac8ffd2432c8b748ba6e1fbeb2822b833a
parent9d7c56431990fc56a1b26dd32c1e7a8d9258345f
tests: Allow unit tests to run as root.

The unit tests did not allow users to run them as root because
ovs-vswitchd would destroy all of the existing 'system' datapaths.
This patch prevents ovs-vswitchd from registering 'system'
datapaths when running unit tests preventing the issue.
lib/dpif.c
lib/dpif.h
tests/ofproto-macros.at
vswitchd/ovs-vswitchd.c