summaryrefslogtreecommitdiffstats
path: root/tools/check-tree.sh
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-10-06 11:42:18 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-10-10 20:18:41 +0200
commit8b3a902ef0b588a7e1b4d3b374a4f5f3c8f21089 (patch)
treeae6389d70675aa12d645b01404f628b7dc79f63c /tools/check-tree.sh
parentc9a478fce619bd0b63dc336c390697bbca44cabd (diff)
tests/shell: mount all of "/var/run" in "test-wrapper.sh"
After reboot, "/var/run/netns" does not exist before we run the first `ip netns add` command. Previously, "test-wrapper.sh" would mount a tmpfs on that directory, but that fails, if the directory doesn't exist. You will notice this, by deleting /var/run/netns (which only root can delete or create, and which is wiped on reboot). Instead, mount all of "/var/run". Then we can also create /var/run/netns directory. This means, any other content from /var/run is hidden too. That's probably desirable, because it means we don't depend on stuff that happens to be there. If we would require other content in /var/run, then the test runner needs to be aware of the requirement and ensure it's present. But best is just to not require anything. It's only iproute2 which insists on /var/run/netns. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/check-tree.sh')
0 files changed, 0 insertions, 0 deletions