test: fix running valgrind tests with NMTST_NO_VALGRIND
authorThomas Haller <thaller@redhat.com>
Tue, 26 May 2015 13:34:03 +0000 (15:34 +0200)
committerThomas Haller <thaller@redhat.com>
Tue, 26 May 2015 13:34:19 +0000 (15:34 +0200)
Fixes: 6463ce5dd9ffc1aae3ca9ddc4dac4e25fd815237

tools/run-test-valgrind.sh

index b93b947..1b4e2c2 100755 (executable)
@@ -12,7 +12,7 @@ fi
 TEST="$1"
 
 if [ "$NMTST_NO_VALGRIND" != "" ]; then
-       "$TEST"
+       "$@"
        exit $?
 fi