qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 3/3] qemu-iotests: Modern shell scripting (us


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v2 3/3] qemu-iotests: Modern shell scripting (use $() instead of ``)
Date: Fri, 16 Nov 2018 10:58:31 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0

On 10/24/18 4:40 AM, Mao Zhongyi wrote:
Various shell files contain a mix between obsolete ``
and modern $(); It would be nice to convert to using
$() everywhere.

Cc: address@hidden
Cc: address@hidden
Cc: address@hidden

Suggested-by: Eric Blake <address@hidden>
Signed-off-by: Mao Zhongyi <address@hidden>
---
  tests/qemu-iotests/check         | 60 ++++++++++++++++----------------
  tests/qemu-iotests/common.config |  4 +--
  2 files changed, 32 insertions(+), 32 deletions(-)

Only affects tests/ so safe for 3.1. I'm happy to take this through my NBD queue, since Dan's test addition will also be impacted by this change.


diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check
index b37713277d..89ed275988 100755
--- a/tests/qemu-iotests/check
+++ b/tests/qemu-iotests/check
@@ -590,7 +590,7 @@ fi
  export QEMU_NBD_PROG="$(type -p "$QEMU_NBD_PROG")"
if [ -z "$QEMU_VXHS_PROG" ]; then
-  export QEMU_VXHS_PROG="`set_prog_path qnio_server`"
+    export QEMU_VXHS_PROG="$(set_prog_path qnio_server)"
  fi

Interesting indentation change while at it. But 4 spaces does seem to be more consistent.

Reviewed-by: Eric Blake <address@hidden>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]