cdown / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
Blob Blame History Raw
From e07bee418824709290a8e1252b95fe90aeae9f9b Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Tue, 7 Jan 2020 14:53:25 +0100
Subject: [PATCH 193/197] tests: accept empty values

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1788896
Signed-off-by: Karel Zak <kzak@redhat.com>
---
 tests/functions.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/functions.sh b/tests/functions.sh
index b930dfe7e..648e1be6e 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -265,11 +265,11 @@ function ts_init_suid {
 
 function ts_valgrind {
 	if [ -z "$TS_VALGRIND_CMD" ]; then
-		$*
+		"$@"
 	else
 		$TS_VALGRIND_CMD --tool=memcheck --leak-check=full \
 				 --leak-resolution=high --num-callers=20 \
-				 --log-file="$TS_VGDUMP" $*
+				 --log-file="$TS_VGDUMP" "$@"
 	fi
 }
 
-- 
2.25.2