testsuite: cleanup /sys/module/ in modprobe tests
1) If a test wants to create an "Empty sysfs", it needs to do
"mkdir -p tests/sys/module".
Without this, there is _no_ sysfs. This is treated as an undefined
state. Both "modprobe *" and "modprobe -r *" will try to operate.
Many tests do this deliberately to keep things simple, which is fine.
But several tests want an empty sysfs, and we should do it properly.
2) "touch tests/sys/module/*/initstate" should be
"echo live > tests/sys/module/*/initstate"
An empty "initstate" file is pointless, because it's treated as an
undefined state for that module. We should either define the state,
or not create a fake sysfs at all, and leave everything undefined.
3) Remove vestigal references to /proc/modules.
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
12 files changed: