Fix: test: use "$@" to pass and quote argument
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Sun, 26 Apr 2015 21:14:16 +0000 (17:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 26 Jun 2015 21:57:08 +0000 (17:57 -0400)
${*} expands wildcard and does not preserve initial arguments.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/utils.sh

index 1a8056d020b44240cdc7f9a79802090cabf897dd..4282fbb6983dfc6a42b412d8a636d9c6861a6204 100644 (file)
@@ -138,12 +138,12 @@ function lttng_enable_kernel_syscall()
 
 function lttng_enable_kernel_syscall_ok()
 {
-       lttng_enable_kernel_syscall 0 ${*}
+       lttng_enable_kernel_syscall 0 "$@"
 }
 
 function lttng_enable_kernel_syscall_fail()
 {
-       lttng_enable_kernel_syscall 1 ${*}
+       lttng_enable_kernel_syscall 1 "$@"
 }
 
 function lttng_disable_kernel_syscall()
@@ -178,12 +178,12 @@ function lttng_disable_kernel_syscall()
 
 function lttng_disable_kernel_syscall_ok()
 {
-       lttng_disable_kernel_syscall 0 ${*}
+       lttng_disable_kernel_syscall 0 "$@"
 }
 
 function lttng_disable_kernel_syscall_fail()
 {
-       lttng_disable_kernel_syscall 1 ${*}
+       lttng_disable_kernel_syscall 1 "$@"
 }
 
 function lttng_enable_kernel_channel()
@@ -204,12 +204,12 @@ function lttng_enable_kernel_channel()
 
 function lttng_enable_kernel_channel_ok()
 {
-       lttng_enable_kernel_channel 0 ${*}
+       lttng_enable_kernel_channel 0 "$@"
 }
 
 function lttng_enable_kernel_channel_fail()
 {
-       lttng_enable_kernel_channel 1 ${*}
+       lttng_enable_kernel_channel 1 "$@"
 }
 
 function lttng_disable_kernel_channel()
@@ -230,12 +230,12 @@ function lttng_disable_kernel_channel()
 
 function lttng_disable_kernel_channel_ok()
 {
-       lttng_disable_kernel_channel 0 ${*}
+       lttng_disable_kernel_channel 0 "$@"
 }
 
 function lttng_disable_kernel_channel_fail()
 {
-       lttng_disable_kernel_channel 1 ${*}
+       lttng_disable_kernel_channel 1 "$@"
 }
 
 function start_lttng_relayd
This page took 0.031757 seconds and 4 git commands to generate.