NetworkManager/src/platform/tests
Lubomir Rintel d6aef9c188 platform/test: unshare the netns namespace so that root tests don't mess with the system
Mount a private sysfs instance. Otherwise gudev sees the devices from the
parent netns as opposed to our netns.

We do, however need a writable /sys/devices subtree for testing the bridge
code. There doesn't seem to be any other way to get a writable subtree of a
read-only filesystem than remounting it with no parameters after the initial
mount. We use this to get a writable sysfs instance and then bindmount it so
that it fits properly in the sysfs hierarchy.

Co-Authored-By: Thomas Haller <thaller@redhat.com>
2015-05-11 19:28:13 +02:00
..
.gitignore trivial: update .gitignore 2013-06-26 11:10:02 -04:00
dump.c platform: refactor extraction of type-name for link 2015-05-01 14:26:39 -05:00
Makefile.am platform: re-enable the platform link test 2015-05-04 18:41:15 +02:00
monitor.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
platform.c platform: return link objects from add functions 2015-05-06 16:14:25 -05:00
test-address.c platform: return link objects from add functions 2015-05-06 16:14:25 -05:00
test-cleanup.c platform: return link objects from add functions 2015-05-06 16:14:25 -05:00
test-common.c platform/test: unshare the netns namespace so that root tests don't mess with the system 2015-05-11 19:28:13 +02:00
test-common.h platform/test: refactor detection of root-test 2015-04-21 18:04:37 +02:00
test-link.c platform: return link objects from add functions 2015-05-06 16:14:25 -05:00
test-route.c platform: return link objects from add functions 2015-05-06 16:14:25 -05:00