diff options
author | Andreas Metzler <ametzler@bebt.de> | 2022-01-21 18:25:52 +0100 |
---|---|---|
committer | Andreas Metzler <ametzler@bebt.de> | 2022-01-21 18:25:52 +0100 |
commit | 7d17d08327029e764f557a7107866dd36e1f6a68 (patch) | |
tree | 87e6788f17b57b8290a9be0afdc7f3931472eda7 | |
parent | f213ec01faa8fd7e7478f85a76352be875f53e4b (diff) | |
download | gnutls-7d17d08327029e764f557a7107866dd36e1f6a68.tar.gz |
Avoid &> redirection bashism in testsuite
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
-rwxr-xr-x | tests/protocol-set-allowlist.sh | 6 | ||||
-rwxr-xr-x | tests/system-override-special-allowlist.sh | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/protocol-set-allowlist.sh b/tests/protocol-set-allowlist.sh index 950c58bd79..907f37562f 100755 --- a/tests/protocol-set-allowlist.sh +++ b/tests/protocol-set-allowlist.sh @@ -116,7 +116,7 @@ with_config_file() { # Smoke --list, @SYSTEM -with_config_file "${CLI}" --list -d 4 --priority @SYSTEM &>"${TMPFILE_LIST}" +with_config_file "${CLI}" --list -d 4 --priority @SYSTEM > "${TMPFILE_LIST}" 2>&1 if test $? != 0; then ${CAT} "${TMPFILE_LIST}" echo 'fails with just @SYSTEM' @@ -131,7 +131,7 @@ fi # Smoke-test that TLS 1.3 is enableable with these algorithms with_config_file \ - "${CLI}" --list -d 4 --priority @SYSTEM:+VERS-TLS1.3 &>"${TMPFILE_LIST}" + "${CLI}" --list -d 4 --priority @SYSTEM:+VERS-TLS1.3 > "${TMPFILE_LIST}" 2>&1 if test $? != 0; then ${CAT} "${TMPFILE_LIST}" echo 'listing algorithms fails with @SYSTEM:+VERS-TLS1.3' @@ -146,7 +146,7 @@ fi # Smoke-test that TLS 1.1 is enableable with these algorithms with_config_file \ - "${CLI}" --list -d 4 --priority @SYSTEM:+VERS-TLS1.1 &>"${TMPFILE_LIST}" + "${CLI}" --list -d 4 --priority @SYSTEM:+VERS-TLS1.1 > "${TMPFILE_LIST}" 2>&1 if test $? != 0; then ${CAT} "${TMPFILE_LIST}" echo 'listing algorithms fails with @SYSTEM:+VERS-TLS1.1' diff --git a/tests/system-override-special-allowlist.sh b/tests/system-override-special-allowlist.sh index 47e838e580..a0017c8829 100755 --- a/tests/system-override-special-allowlist.sh +++ b/tests/system-override-special-allowlist.sh @@ -71,7 +71,7 @@ export GNUTLS_SYSTEM_PRIORITY_FAIL_ON_INVALID=1 # Smoke --list, @SYSTEM -${CLI} --list -d 4 --priority @SYSTEM &>"${TMPOUTFILE}" +${CLI} --list -d 4 --priority @SYSTEM > "${TMPOUTFILE}" 2>&1 if test $? != 0; then cat "${TMPOUTFILE}" echo 'fails with just @SYSTEM' @@ -97,7 +97,7 @@ ${SED} 's/for @SYSTEM/for ---PRIORITY---/' "${TMPOUTFILE}" > "${TMPREFFILE}" # Smoke-test a no-op %STATELESS_COMPRESSION, expect --list to stay the same -${CLI} --list -d 4 --priority @SYSTEM:%STATELESS_COMPRESSION &>"${TMPOUTFILE}" +${CLI} --list -d 4 --priority @SYSTEM:%STATELESS_COMPRESSION > "${TMPOUTFILE}" 2>&1 if test $? != 0; then cat "${TMPOUTFILE}" echo 'fails with %STATELESS_COMPRESSION' @@ -112,7 +112,7 @@ fi # Smoke-test %NONEXISTING_OPTION, expect a syntax error -${CLI} --list -d 4 --priority @SYSTEM:%NONEXISTING_OPTION &>"${TMPOUTFILE}" +${CLI} --list -d 4 --priority @SYSTEM:%NONEXISTING_OPTION > "${TMPOUTFILE}" 2>&1 if test $? = 0; then cat "${TMPOUTFILE}" echo 'unknown option was not caught' @@ -132,7 +132,7 @@ while read special; do continue # see below fi prio="@SYSTEM:%$special" - ${CLI} --list -d 4 --priority "$prio" &>"${TMPOUTFILE}" + ${CLI} --list -d 4 --priority "$prio" > "${TMPOUTFILE}" 2>&1 if test $? != 0; then cat "${TMPOUTFILE}" echo "fails with $prio" @@ -148,7 +148,7 @@ done < "${TMPSPECIAL}" # Check that %NO_EXTENSIONS changes the output, capping it to TLS 1.2 -${CLI} --list -d 4 --priority @SYSTEM:%NO_EXTENSIONS &>"${TMPOUTFILE}" +${CLI} --list -d 4 --priority @SYSTEM:%NO_EXTENSIONS > "${TMPOUTFILE}" 2>&1 if test $? != 0; then cat "${TMPOUTFILE}" echo 'fails with just @SYSTEM' |