[Libguestfs] [PATCH] test-events.sh: Make sure that LIBGUESTFS_PATH is set.
Richard W.M. Jones
rjones at redhat.com
Sun May 19 16:29:37 UTC 2013
On Sun, May 19, 2013 at 06:02:25PM +0200, Hilko Bengen wrote:
> Otherwise, the test fails with --disable-appliance.
> ---
> fish/test-events.sh | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/fish/test-events.sh b/fish/test-events.sh
> index 79957ed..46b644b 100755
> --- a/fish/test-events.sh
> +++ b/fish/test-events.sh
> @@ -22,6 +22,12 @@ set -e
>
> rm -f test.out
>
> +# A meaningful LIBGUESTFS_PATH is technically not needed, but the
> +# "trace get_path" line may not be predictable it it has not been set.
> +if [ -z "$LIBGUESTFS_PATH" ]; then
> + export LIBGUESTFS_PATH=/nonexistent
> +fi
> +
> ./guestfish -a /dev/null <<'EOF' | grep -v get_verbose | grep -v get_trace | grep -v 'library .*0x' | grep -v 'library command' > test.out
> trace true
I think we should probably add an extra `grep -v get_path' to the
things being filtered out.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
More information about the Libguestfs
mailing list