tests/valgrind: rename name of logfile for valgrind run
authorThomas Haller <thaller@redhat.com>
Sat, 5 Dec 2015 19:21:55 +0000 (20:21 +0100)
committerThomas Haller <thaller@redhat.com>
Sat, 5 Dec 2015 19:35:16 +0000 (20:35 +0100)
Change the name of the file where to store the results
of the valgrind run.

Previously the file had a prefix "valgrind-", which is inconvinient.
Instead, have the file using the same name as the test executable,
with a ".valgrind-log" suffix.

tools/run-test-valgrind.sh

index 424f633..4dc092a 100755 (executable)
@@ -91,7 +91,7 @@ if [ "$NMTST_NO_VALGRIND" != "" ]; then
        exit $?
 fi
 
-LOGFILE="valgrind-`echo "$TEST" | tr -cd '[:alpha:]-'`.log"
+LOGFILE="${TEST}.valgrind-log"
 
 export G_SLICE=always-malloc
 export G_DEBUG=gc-friendly