This commit is contained in:
Grant Limberg 2023-07-17 13:32:32 -07:00
parent 19d92e5c73
commit 307281535b
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735

View file

@ -439,8 +439,10 @@ spam_cli() {
check_exit_on_invalid_identity() {
echo "Checking ZeroTier exits on invalid identity..."
mkdir -p $(pwd)/exit_test
ZT1="./zerotier-cli -p9999 -D$(pwd)/exit_test"
echo "asdfasdfasdfasdf" > $(pwd)/exit_test/identity.secret
echo "asdfasdfasdfasdf" > $(pwd)/exit_test/authtoken.secret
echo "Launch ZeroTier with an invalid identity"
$ZT1 &
@ -454,8 +456,9 @@ check_exit_on_invalid_identity() {
if [ $? -eq 0 ]; then
EXIT_TEST_FAILED=1
echo "Exit test FAILED: Process still running after being fed an invalid identity"
else
echo "Exit test PASSED"
fi
echo "Exit test PASSED"
}
main "$@"