diff options
author | Andrei Pavel <andrei@isc.org> | 2024-10-23 09:59:31 +0200 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2024-10-23 15:40:37 +0200 |
commit | a740d0bfe58515913cb5839ecb00b3400e5d20cf (patch) | |
tree | fb1e5258a37fcb5ba9e165abb8b13893ce71fe68 /fuzz/tests | |
parent | [#3605] use server listener (diff) | |
download | kea-a740d0bfe58515913cb5839ecb00b3400e5d20cf.tar.xz kea-a740d0bfe58515913cb5839ecb00b3400e5d20cf.zip |
[#3605] Rotate ports on HTTP fuzzers as well
Diffstat (limited to 'fuzz/tests')
-rwxr-xr-x | fuzz/tests/test_fuzz_config_kea_dhcp4.sh | 2 | ||||
-rwxr-xr-x | fuzz/tests/test_fuzz_config_kea_dhcp6.sh | 2 | ||||
-rwxr-xr-x | fuzz/tests/test_fuzz_http_endpoint_kea_dhcp4.sh | 2 | ||||
-rwxr-xr-x | fuzz/tests/test_fuzz_http_endpoint_kea_dhcp6.sh | 2 | ||||
-rwxr-xr-x | fuzz/tests/test_fuzz_packets_kea_dhcp4.sh | 2 | ||||
-rwxr-xr-x | fuzz/tests/test_fuzz_packets_kea_dhcp6.sh | 2 | ||||
-rwxr-xr-x | fuzz/tests/test_fuzz_unix_socket_kea_dhcp4.sh | 2 | ||||
-rwxr-xr-x | fuzz/tests/test_fuzz_unix_socket_kea_dhcp6.sh | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/fuzz/tests/test_fuzz_config_kea_dhcp4.sh b/fuzz/tests/test_fuzz_config_kea_dhcp4.sh index 416b72a656..f9e0a8f2c5 100755 --- a/fuzz/tests/test_fuzz_config_kea_dhcp4.sh +++ b/fuzz/tests/test_fuzz_config_kea_dhcp4.sh @@ -1,6 +1,6 @@ #!/bin/sh -if ! sudo -n true; then exec sudo -E -- "${0}" "${@}"; fi +if test "$(id -u)" != 0; then exec sudo -E -- "${0}" "${@}"; fi script_path=$(cd "$(dirname "${0}")" && pwd) diff --git a/fuzz/tests/test_fuzz_config_kea_dhcp6.sh b/fuzz/tests/test_fuzz_config_kea_dhcp6.sh index 416b72a656..f9e0a8f2c5 100755 --- a/fuzz/tests/test_fuzz_config_kea_dhcp6.sh +++ b/fuzz/tests/test_fuzz_config_kea_dhcp6.sh @@ -1,6 +1,6 @@ #!/bin/sh -if ! sudo -n true; then exec sudo -E -- "${0}" "${@}"; fi +if test "$(id -u)" != 0; then exec sudo -E -- "${0}" "${@}"; fi script_path=$(cd "$(dirname "${0}")" && pwd) diff --git a/fuzz/tests/test_fuzz_http_endpoint_kea_dhcp4.sh b/fuzz/tests/test_fuzz_http_endpoint_kea_dhcp4.sh index 416b72a656..f9e0a8f2c5 100755 --- a/fuzz/tests/test_fuzz_http_endpoint_kea_dhcp4.sh +++ b/fuzz/tests/test_fuzz_http_endpoint_kea_dhcp4.sh @@ -1,6 +1,6 @@ #!/bin/sh -if ! sudo -n true; then exec sudo -E -- "${0}" "${@}"; fi +if test "$(id -u)" != 0; then exec sudo -E -- "${0}" "${@}"; fi script_path=$(cd "$(dirname "${0}")" && pwd) diff --git a/fuzz/tests/test_fuzz_http_endpoint_kea_dhcp6.sh b/fuzz/tests/test_fuzz_http_endpoint_kea_dhcp6.sh index 416b72a656..f9e0a8f2c5 100755 --- a/fuzz/tests/test_fuzz_http_endpoint_kea_dhcp6.sh +++ b/fuzz/tests/test_fuzz_http_endpoint_kea_dhcp6.sh @@ -1,6 +1,6 @@ #!/bin/sh -if ! sudo -n true; then exec sudo -E -- "${0}" "${@}"; fi +if test "$(id -u)" != 0; then exec sudo -E -- "${0}" "${@}"; fi script_path=$(cd "$(dirname "${0}")" && pwd) diff --git a/fuzz/tests/test_fuzz_packets_kea_dhcp4.sh b/fuzz/tests/test_fuzz_packets_kea_dhcp4.sh index 416b72a656..f9e0a8f2c5 100755 --- a/fuzz/tests/test_fuzz_packets_kea_dhcp4.sh +++ b/fuzz/tests/test_fuzz_packets_kea_dhcp4.sh @@ -1,6 +1,6 @@ #!/bin/sh -if ! sudo -n true; then exec sudo -E -- "${0}" "${@}"; fi +if test "$(id -u)" != 0; then exec sudo -E -- "${0}" "${@}"; fi script_path=$(cd "$(dirname "${0}")" && pwd) diff --git a/fuzz/tests/test_fuzz_packets_kea_dhcp6.sh b/fuzz/tests/test_fuzz_packets_kea_dhcp6.sh index 416b72a656..f9e0a8f2c5 100755 --- a/fuzz/tests/test_fuzz_packets_kea_dhcp6.sh +++ b/fuzz/tests/test_fuzz_packets_kea_dhcp6.sh @@ -1,6 +1,6 @@ #!/bin/sh -if ! sudo -n true; then exec sudo -E -- "${0}" "${@}"; fi +if test "$(id -u)" != 0; then exec sudo -E -- "${0}" "${@}"; fi script_path=$(cd "$(dirname "${0}")" && pwd) diff --git a/fuzz/tests/test_fuzz_unix_socket_kea_dhcp4.sh b/fuzz/tests/test_fuzz_unix_socket_kea_dhcp4.sh index 416b72a656..f9e0a8f2c5 100755 --- a/fuzz/tests/test_fuzz_unix_socket_kea_dhcp4.sh +++ b/fuzz/tests/test_fuzz_unix_socket_kea_dhcp4.sh @@ -1,6 +1,6 @@ #!/bin/sh -if ! sudo -n true; then exec sudo -E -- "${0}" "${@}"; fi +if test "$(id -u)" != 0; then exec sudo -E -- "${0}" "${@}"; fi script_path=$(cd "$(dirname "${0}")" && pwd) diff --git a/fuzz/tests/test_fuzz_unix_socket_kea_dhcp6.sh b/fuzz/tests/test_fuzz_unix_socket_kea_dhcp6.sh index 416b72a656..f9e0a8f2c5 100755 --- a/fuzz/tests/test_fuzz_unix_socket_kea_dhcp6.sh +++ b/fuzz/tests/test_fuzz_unix_socket_kea_dhcp6.sh @@ -1,6 +1,6 @@ #!/bin/sh -if ! sudo -n true; then exec sudo -E -- "${0}" "${@}"; fi +if test "$(id -u)" != 0; then exec sudo -E -- "${0}" "${@}"; fi script_path=$(cd "$(dirname "${0}")" && pwd) |