diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-22 08:41:14 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-22 10:57:47 +0100 |
commit | 145f35badfd9ca4a6d9f54f7732566a5e5114876 (patch) | |
tree | 08c92122cb693a8270dbe63b60a63d011c4a2880 /sysprep/test-virt-sysprep-script.sh | |
parent | 6352953ea927819a8ece795d03c4938e657d0a97 (diff) | |
download | libguestfs-145f35badfd9ca4a6d9f54f7732566a5e5114876.tar.gz libguestfs-145f35badfd9ca4a6d9f54f7732566a5e5114876.tar.xz libguestfs-145f35badfd9ca4a6d9f54f7732566a5e5114876.zip |
tests: Add SKIP_TEST_* variables to allow these tests to be skipped.
By setting these variables, we can skip tests that fail on
RHEL 5.
Diffstat (limited to 'sysprep/test-virt-sysprep-script.sh')
-rwxr-xr-x | sysprep/test-virt-sysprep-script.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysprep/test-virt-sysprep-script.sh b/sysprep/test-virt-sysprep-script.sh index 36a7ab86..09c42aff 100755 --- a/sysprep/test-virt-sysprep-script.sh +++ b/sysprep/test-virt-sysprep-script.sh @@ -20,6 +20,11 @@ export LANG=C set -e #set -x +if [ -n "$SKIP_TEST_VIRT_SYSPREP_SCRIPT_SH" ]; then + echo "$0: test skipped because environment variable is set." + exit 0 +fi + if [ ! -w /dev/fuse ]; then echo "$0: SKIPPING test, because there is no /dev/fuse." exit 0 |