]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: use portable shell code
authorEric Blake <eblake@redhat.com>
Thu, 9 May 2013 17:36:58 +0000 (11:36 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 9 May 2013 17:46:45 +0000 (11:46 -0600)
commit1d21b884a3603d0a776d365e3ba311ffc6960445
tree35182b22507e94970dba66b26e82dd8fc49c99c3
parent0454a7cd3d6955a4e2955f178e2c0b4f5af6cb4f
tests: use portable shell code

'make check' fails since commit 470d5c46 on any system with dash
as /bin/sh, because '<<<' is a bash extension.  For example:

nwfilterschematest: 23: /home/eblake/libvirt/tests/schematestutils.sh: Syntax error: redirection unexpected

Also, there is no need to spawn a grep process when shell globbing
can do the same.

* tests/schematestutils.sh: Replace bashism and subprocess with a
faster and portable construct.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/schematestutils.sh