aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/common.config
diff options
context:
space:
mode:
authorMao Zhongyi <maozhongyi@cmss.chinamobile.com>2018-10-24 17:40:51 +0800
committerEric Blake <eblake@redhat.com>2018-11-19 10:08:19 -0600
commit4a9e751f61522991c2fa94a4da8feda6a4d09c70 (patch)
tree31d33f3c4caa4a6f51c11045d19d3edac9869352 /tests/qemu-iotests/common.config
parente8d81a61e1b9e28267164f751dee5b9b59444e71 (diff)
downloadqemu-4a9e751f61522991c2fa94a4da8feda6a4d09c70.zip
qemu-4a9e751f61522991c2fa94a4da8feda6a4d09c70.tar.gz
qemu-4a9e751f61522991c2fa94a4da8feda6a4d09c70.tar.bz2
qemu-iotests: Modern shell scripting (use $() instead of ``)
Various shell files contain a mix between obsolete `` and modern $(); It would be nice to convert to using $() everywhere. For now, just do the qemu-iotests directory. Cc: kwolf@redhat.com Cc: mreitz@redhat.com Cc: eblake@redhat.com Suggested-by: Eric Blake <eblake@redhat.com> Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com> Message-Id: <20181024094051.4470-4-maozhongyi@cmss.chinamobile.com> Reviewed-by: Eric Blake <eblake@redhat.com> [eblake: tweak commit message] Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/common.config')
-rw-r--r--tests/qemu-iotests/common.config4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qemu-iotests/common.config b/tests/qemu-iotests/common.config
index 3cda0fe..9f460f2 100644
--- a/tests/qemu-iotests/common.config
+++ b/tests/qemu-iotests/common.config
@@ -21,8 +21,8 @@ export LANG=C
PATH=".:$PATH"
-HOSTOS=`uname -s`
-arch=`uname -m`
+HOSTOS=$(uname -s)
+arch=$(uname -m)
[[ "$arch" =~ "ppc64" ]] && qemu_arch=ppc64 || qemu_arch="$arch"
# make sure we have a standard umask