diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2016-03-17 09:34:47 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-03-17 16:42:00 +0100 |
commit | 77a74837312ee4e453d379d5ea8bd5a823b4c6fe (patch) | |
tree | 40283d095da1215140b4f0036b30b9ce37116622 /include/expression.h | |
parent | 609ae5bbc410e3817d5968a5070c7ede33921240 (diff) |
tests/shell: unload modules between tests
This patch adjusts the main test script so it unload all nftables
kernel modules between tests.
This way we achieve two interesting things:
* avoid false errors in some testcases due to module loading order
* test the module loading/unloading path itself
The false positives is for example, listing ruleset per families, which depends
on the loading order of nf_tables_xx modules.
We can later add more modules to unload incrementally (for
example nf_tables_switchdev).
This patch assumes we are working with a kernel which is compiled with
nf_tables =m, the case using =y is not supported and can still produce false
positives in some testcases due to module ordering.
Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/expression.h')
0 files changed, 0 insertions, 0 deletions