build: Return 77 from skipped tests.

(cherry picked from commit fc86db3b3b)
This commit is contained in:
Richard W.M. Jones
2012-07-19 11:16:35 +01:00
parent 80813b0282
commit 7acf3cba81
14 changed files with 20 additions and 20 deletions

View File

@@ -23,7 +23,7 @@
test -d /dev/fd || {
echo "$0: Skipping this test because /dev/fd is missing."
exit 0
exit 77
}
set -e

View File

@@ -23,7 +23,7 @@
test -d /dev/fd || {
echo "$0: Skipping this test because /dev/fd is missing."
exit 0
exit 77
}
set -e

View File

@@ -25,12 +25,12 @@ set -e
if [ -n "$SKIP_TEST_FUSE_SH" ]; then
echo "$0: test skipped because environment variable is set."
exit 0
exit 77
fi
if [ ! -w /dev/fuse ]; then
echo "SKIPPING guestmount test, because there is no /dev/fuse."
exit 0
exit 77
fi
if [ -z "$top_builddir" ]; then

View File

@@ -22,17 +22,17 @@ set -e
if [ -n "$SKIP_TEST_FUSE_SH" ]; then
echo "$0: test skipped because environment variable is set."
exit 0
exit 77
fi
if [ ! -w /dev/fuse ]; then
echo "SKIPPING guestmount test, because there is no /dev/fuse."
exit 0
exit 77
fi
if ! setfacl --help >/dev/null 2>&1; then
echo "SKIPPING guestmount test, because setfacl is not installed."
exit 0
exit 77
fi
if [ -z "$top_builddir" ]; then

View File

@@ -20,7 +20,7 @@ set -e
if [ -z "$GJS" ]; then
echo "GObject bind tests skipped: gjs is missing"
exit 0
exit 77
fi
../run $GJS $srcdir/tests-misc.js 2>/dev/null

View File

@@ -20,7 +20,7 @@ set -e
if [ -z "$GJS" ]; then
echo "GObject bind tests skipped: gjs is missing"
exit 0
exit 77
fi
../run $GJS $srcdir/bindtests.js > bindtests.tmp

View File

@@ -20,13 +20,13 @@ set -e
if [ ! -d "$QEMUDIR" ]; then
echo "$0: \$QEMUDIR not a directory, tests against upstream qemu skipped"
exit 0
exit 77
fi
QEMU="$QEMUDIR/x86_64-softmmu/qemu-system-x86_64"
if ! "$QEMU" --help >/dev/null 2>&1; then
echo "$0: $QEMU not executable, tests against upstream qemu skipped"
exit 0
exit 77
fi
"$QEMU" --version

View File

@@ -22,7 +22,7 @@ set -e
[ -n "$SKIP_TEST_LUKS_SH" ] && {
echo "test-luks-list.sh skipped (environment variable set)"
exit 0
exit 77
}
rm -f test1.img test.output

View File

@@ -22,7 +22,7 @@ set -e
[ -n "$SKIP_TEST_LUKS_SH" ] && {
echo "test-luks.sh skipped (environment variable set)"
exit 0
exit 77
}
rm -f test1.img

View File

@@ -23,7 +23,7 @@ export LANG=C
if [ -n "$SKIP_TEST_INSPECT_FSTAB_MD_SH" ]; then
echo "$0: test skipped because environment variable is set."
exit 0
exit 77
fi
# The first test requires a new Augeas lens for parsing mdadm.conf.
@@ -32,7 +32,7 @@ fi
f=$(grep mdadm_conf.aug ../../appliance/supermin.d/hostfiles | head -1)
if [ -z "$f" -o ! -f "$f" ]; then
echo "$0: test skipped because Augeas mdadm.conf lens is not available."
exit 0
exit 77
fi
guestfish=../../fish/guestfish

View File

@@ -22,7 +22,7 @@ set -e
if [ -n "$SKIP_TEST_LIST_FILESYSTEMS_SH" ]; then
echo "$0: test skipped because environment variable is set."
exit 0
exit 77
fi
rm -f test.output

View File

@@ -22,7 +22,7 @@ set -e
if [ -n "$SKIP_TEST_MDADM_SH" ]; then
echo "$0: test skipped because environment variable is set."
exit 0
exit 77
fi
rm -f md-test1.img md-test2.img md-test3.img md-test4.img

View File

@@ -26,7 +26,7 @@ use POSIX;
use Sys::Guestfs;
# Allow this test to be skipped.
exit 0 if $ENV{SKIP_TEST_LAUNCH_RACE_PL};
exit 77 if $ENV{SKIP_TEST_LAUNCH_RACE_PL};
# Use a temporary TMPDIR to ensure it's clean
my $tmpdir = tempdir (CLEANUP => 1);

View File

@@ -29,7 +29,7 @@
# the mkfs fails. It's not clear how to solve this cleanly. XXX
[ -n "$SKIP_TEST_RHBZ690819_SH" ] && {
echo "$0 skipped (environment variable set)"
exit 0
exit 77
}
set -e
@@ -37,7 +37,7 @@ export LANG=C
if [ -n "$SKIP_TEST_RHBZ690819_SH" ]; then
echo "$0: test skipped because environment variable is set."
exit 0
exit 77
fi
rm -f test.img