mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-08-08 09:21:48 +08:00
tests: do not store environment information
This prevents accidental secret leakage. Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
#echo $USERNAME : $REASON : $DEVICE
|
||||
|
||||
env >apple-ios.$REASON.tmp
|
||||
builddir=${builddir:-.}
|
||||
|
||||
verify_env_set() {
|
||||
if test -z "${!1}";then
|
||||
echo "Fail: $1 environment variable was not set" >>apple-ios.$REASON.tmp
|
||||
echo "Fail: $1 environment variable was not set" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -5,8 +5,7 @@ builddir=${builddir:-.}
|
||||
|
||||
verify_env_set() {
|
||||
if test -z "${!1}";then
|
||||
env >out.$REASON.fail.tmp
|
||||
echo "$1 environment variable was not set" >>out.$REASON.fail.tmp
|
||||
echo "$1 environment variable was not set" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user