Harald Hoyer 9d5d75
From 67f43d2124cb827f45f4a1f3a2c1aae7cb08378e Mon Sep 17 00:00:00 2001
Harald Hoyer 9d5d75
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 9d5d75
Date: Thu, 16 Aug 2018 11:13:55 +0200
Harald Hoyer 9d5d75
Subject: [PATCH] test: fixed test.log name
Harald Hoyer 9d5d75
Harald Hoyer 9d5d75
---
Harald Hoyer 9d5d75
 test/test-functions | 14 +++++++-------
Harald Hoyer 9d5d75
 1 file changed, 7 insertions(+), 7 deletions(-)
Harald Hoyer 9d5d75
Harald Hoyer 9d5d75
diff --git a/test/test-functions b/test/test-functions
Harald Hoyer 9d5d75
index 02ceafec..0c9d88c8 100644
Harald Hoyer 9d5d75
--- a/test/test-functions
Harald Hoyer 9d5d75
+++ b/test/test-functions
Harald Hoyer 9d5d75
@@ -54,7 +54,7 @@ while (($# > 0)); do
Harald Hoyer 9d5d75
 	    exit $?;;
Harald Hoyer 9d5d75
         --all)
Harald Hoyer 9d5d75
             check_root
Harald Hoyer 9d5d75
-            if ! test_check 2&>test-${TEST_RUN_ID:+-$TEST_RUN_ID}.log ; then
Harald Hoyer 9d5d75
+            if ! test_check 2&>test${TEST_RUN_ID:+-$TEST_RUN_ID}.log ; then
Harald Hoyer 9d5d75
  	        echo -e "TEST: $TEST_DESCRIPTION " $COLOR_WARNING "[SKIPPED]" $COLOR_NORMAL
Harald Hoyer 9d5d75
 		exit 0;
Harald Hoyer 9d5d75
             else
Harald Hoyer 9d5d75
@@ -68,7 +68,7 @@ while (($# > 0)); do
Harald Hoyer 9d5d75
 		    rm -fr -- "$TESTDIR"
Harald Hoyer 9d5d75
 		    rm -f -- .testdir${TEST_RUN_ID:+-$TEST_RUN_ID}
Harald Hoyer 9d5d75
 		    exit $ret
Harald Hoyer 9d5d75
-	        ) </dev/null >test-${TEST_RUN_ID:+-$TEST_RUN_ID}.log 2>&1
Harald Hoyer 9d5d75
+	        ) </dev/null >test${TEST_RUN_ID:+-$TEST_RUN_ID}.log 2>&1
Harald Hoyer 9d5d75
             elif [[ "$V" == "2" ]]; then
Harald Hoyer 9d5d75
                 set -o pipefail
Harald Hoyer 9d5d75
                 (
Harald Hoyer 9d5d75
@@ -81,7 +81,7 @@ while (($# > 0)); do
Harald Hoyer 9d5d75
 		    rm -fr -- "$TESTDIR"
Harald Hoyer 9d5d75
 		    rm -f -- .testdir${TEST_RUN_ID:+-$TEST_RUN_ID}
Harald Hoyer 9d5d75
 		    exit $ret
Harald Hoyer 9d5d75
-	        ) </dev/null 2>&1 | $basedir/logtee test-${TEST_RUN_ID:+-$TEST_RUN_ID}.log
Harald Hoyer 9d5d75
+	        ) </dev/null 2>&1 | $basedir/logtee test${TEST_RUN_ID:+-$TEST_RUN_ID}.log
Harald Hoyer 9d5d75
             else
Harald Hoyer 9d5d75
                 set -o pipefail
Harald Hoyer 9d5d75
                 (
Harald Hoyer 9d5d75
@@ -94,20 +94,20 @@ while (($# > 0)); do
Harald Hoyer 9d5d75
 		    rm -fr -- "$TESTDIR"
Harald Hoyer 9d5d75
 		    rm -f -- .testdir${TEST_RUN_ID:+-$TEST_RUN_ID}
Harald Hoyer 9d5d75
 		    exit $ret
Harald Hoyer 9d5d75
-	        ) </dev/null 2>&1 | tee test-${TEST_RUN_ID:+-$TEST_RUN_ID}.log
Harald Hoyer 9d5d75
+	        ) </dev/null 2>&1 | tee test${TEST_RUN_ID:+-$TEST_RUN_ID}.log
Harald Hoyer 9d5d75
             fi
Harald Hoyer 9d5d75
 	    ret=$?
Harald Hoyer 9d5d75
             set +o pipefail
Harald Hoyer 9d5d75
 	    if [ $ret -eq 0 ]; then
Harald Hoyer 9d5d75
-                rm -- test-${TEST_RUN_ID:+-$TEST_RUN_ID}.log
Harald Hoyer 9d5d75
+                rm -- test${TEST_RUN_ID:+-$TEST_RUN_ID}.log
Harald Hoyer 9d5d75
 	        echo -e "TEST: $TEST_DESCRIPTION " $COLOR_SUCCESS "[OK]" $COLOR_NORMAL
Harald Hoyer 9d5d75
 	    else
Harald Hoyer 9d5d75
 	        echo -e "TEST: $TEST_DESCRIPTION " $COLOR_FAILURE "[FAILED]" $COLOR_NORMAL
Harald Hoyer 9d5d75
                 if [ "$V" == "2" ]; then
Harald Hoyer 9d5d75
-	            cat $(pwd)/server${TEST_RUN_ID:+-$TEST_RUN_ID}.log $(pwd)/test-${TEST_RUN_ID:+-$TEST_RUN_ID}.log
Harald Hoyer 9d5d75
+	            cat $(pwd)/server${TEST_RUN_ID:+-$TEST_RUN_ID}.log $(pwd)/test${TEST_RUN_ID:+-$TEST_RUN_ID}.log
Harald Hoyer 9d5d75
 	            echo -e "TEST: $TEST_DESCRIPTION " $COLOR_FAILURE "[FAILED]" $COLOR_NORMAL
Harald Hoyer 9d5d75
                 else
Harald Hoyer 9d5d75
-	            echo "see $(pwd)/test-${TEST_RUN_ID:+-$TEST_RUN_ID}.log"
Harald Hoyer 9d5d75
+	            echo "see $(pwd)/test${TEST_RUN_ID:+-$TEST_RUN_ID}.log"
Harald Hoyer 9d5d75
                 fi
Harald Hoyer 9d5d75
 	    fi
Harald Hoyer 9d5d75
 	    exit $ret;;
Harald Hoyer 9d5d75