diff options
Diffstat (limited to 'src/transport/test_transport_simple_send_string.sh')
-rwxr-xr-x | src/transport/test_transport_simple_send_string.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/transport/test_transport_simple_send_string.sh b/src/transport/test_transport_simple_send_string.sh index 018ea55e8..f9510e6b6 100755 --- a/src/transport/test_transport_simple_send_string.sh +++ b/src/transport/test_transport_simple_send_string.sh | |||
@@ -7,8 +7,11 @@ T:libgnunet_test_transport_plugin_cmd_simple_send | |||
7 | P:1:1|{connect:{P:1:2:tcp}} | 7 | P:1:1|{connect:{P:1:2:tcp}} |
8 | P:1:2|{connect:{P:1:1:tcp}} | 8 | P:1:2|{connect:{P:1:1:tcp}} |
9 | EOF | 9 | EOF |
10 | ) | 10 | ) |
11 | if [ "$(sysctl -n kernel.unprivileged_userns_clone)" == 1 ]; then | 11 | if ! [ -d "/run/netns" ]; then |
12 | echo You have to create the directory /run/netns. | ||
13 | fi | ||
14 | if [ "$(cat /proc/sys/kernel/core_uses_pid)" == 1 ]; then | ||
12 | exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_start_with_config -s '$string'" | 15 | exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_start_with_config -s '$string'" |
13 | else | 16 | else |
14 | echo -e "Error during test setup: The kernel parameter kernel.unprivileged_userns_clone has to be set to 1! One has to execute\n\n sysctl kernel.unprivileged_userns_clone=1\n" | 17 | echo -e "Error during test setup: The kernel parameter kernel.unprivileged_userns_clone has to be set to 1! One has to execute\n\n sysctl kernel.unprivileged_userns_clone=1\n" |