aboutsummaryrefslogtreecommitdiff
path: root/testcases/lib
diff options
context:
space:
mode:
authorPetr Vorel <pvorel@suse.cz>2018-06-28 16:02:53 +0200
committerPetr Vorel <pvorel@suse.cz>2018-06-28 16:02:53 +0200
commit244974558e899373f6aed875bcb6329d19c37b5c (patch)
tree04adf0d20b9c135fb3a8e9240c23d55bbf64a910 /testcases/lib
parentea3edce3366616326a5329952357fc7610582133 (diff)
test.sh: Fix assign to local variable in dash
tst_rod call in ROD_SILENT must be quoted as it can have multiline output. This has been already fixed for tst_test.sh in 5c4a9839d Signed-off-by: Petr Vorel <pvorel@suse.cz>
Diffstat (limited to 'testcases/lib')
-rw-r--r--testcases/lib/test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/testcases/lib/test.sh b/testcases/lib/test.sh
index bce9893a9..ea211cc82 100644
--- a/testcases/lib/test.sh
+++ b/testcases/lib/test.sh
@@ -225,7 +225,7 @@ tst_timeout()
ROD_SILENT()
{
- local tst_out=$($@ 2>&1)
+ local tst_out="$($@ 2>&1)"
if [ $? -ne 0 ]; then
echo "$tst_out"
tst_brkm TBROK "$@ failed"