1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

Fix: Suppress rm output and correct path

This commit is contained in:
Marvin Scholz 2018-08-07 20:56:51 +02:00
parent 91ff31ea26
commit f005aa710e

View File

@ -165,12 +165,12 @@ echo "# Testing on-connect handling with probing"
test_sourcing "on-connect-test-noauth" "test-on-connect.ogg" 401
if [ -f "on-connect-success" ]; then
echo "# FAIL: on-connect triggered, even though it should not!"
rm "on-connect-success"
rm "$testdir/on-connect-success" > /dev/null 2>&1
fi
test_sourcing "on-connect-test-sourceauth" "test-on-connect.ogg" 200 "$AUTH_SOURCE"
if [ -f "on-connect-success" ]; then
echo "# OK: on-connect triggered!"
rm "on-connect-success"
rm "$testdir/on-connect-success" > /dev/null 2>&1
else
echo "# FAIL: on-connect not triggered!"
fi
@ -179,7 +179,7 @@ echo "#"
echo "# All tests done, cleanup..."
echo "#"
rm "myauth"
rm "$testdir/myauth" > /dev/null 2>&1
if kill $SOURCE1_PID > /dev/null 2>&1; then
echo "# Terminated SOURCE1"