From f005aa710eee802069acc0e2e9cbbab6c06bd0a4 Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Tue, 7 Aug 2018 20:56:51 +0200 Subject: [PATCH] Fix: Suppress rm output and correct path --- tests/admin.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/admin.test b/tests/admin.test index cfe51740..337c8581 100755 --- a/tests/admin.test +++ b/tests/admin.test @@ -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"