mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
r7442: skip tests that require smbd, but smbd is down
metze (This used to be commit dad79155624808aa85c34921f05d2e0cded6ad12)
This commit is contained in:
parent
84ee48e3e9
commit
4140ccd0dd
@ -3,6 +3,14 @@ testit() {
|
||||
shift 1
|
||||
trap "rm -f test.$$" EXIT
|
||||
cmdline="$*"
|
||||
|
||||
if [ -n "$SMBD_TEST_FIFO" ];then
|
||||
if [ ! -p "$SMBD_TEST_FIFO" ];then
|
||||
echo "TEST SKIPPED: $name (reason: smbd is down)";
|
||||
return 0;
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ x"$RUN_FROM_BUILD_FARM" = x"yes" ];then
|
||||
echo "--==--==--==--==--==--==--==--==--==--==--"
|
||||
echo "Running test $name (level 0 stdout)"
|
||||
@ -19,10 +27,10 @@ testit() {
|
||||
rm -f test.$$;
|
||||
if [ x"$RUN_FROM_BUILD_FARM" = x"yes" ];then
|
||||
echo "=========================================="
|
||||
echo "TEST FAILED: $name (status $ret)"
|
||||
echo "TEST FAILED: $name (status $status)"
|
||||
echo "=========================================="
|
||||
else
|
||||
echo "TEST FAILED: $name (status $ret)"
|
||||
echo "TEST FAILED: $name (status $status)"
|
||||
fi
|
||||
return 1;
|
||||
fi
|
||||
|
@ -16,6 +16,10 @@ fi
|
||||
incdir=`dirname $0`
|
||||
. $incdir/test_functions.sh
|
||||
|
||||
# the local tests doesn't need smbd
|
||||
SMBD_TEST_FIFO=""
|
||||
export SMBD_TEST_FIFO
|
||||
|
||||
failed=0
|
||||
for t in $local_tests; do
|
||||
name="$t"
|
||||
|
Loading…
x
Reference in New Issue
Block a user