[Libguestfs] [PATCH] test-events.sh: Make sure that LIBGUESTFS_PATH is set.
Hilko Bengen
bengen at hilluzination.de
Sun May 19 16:02:25 UTC 2013
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
--
1.7.10.4
More information about the Libguestfs
mailing list