mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-28 02:20:18 -04:00
tests: Drop plan_tests function, no longer used
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
1 parent
eb240aa067
commit
f0ce1311af
1 file changed
+1
-18
+1
-18
@@ -42,28 +42,11 @@ if [ -e "$test_srcdir/installed-tests.sh" ]; then
|
|||||||
. "$test_srcdir/installed-tests.sh"
|
. "$test_srcdir/installed-tests.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
planned_tests=
|
|
||||||
test_number=0
|
test_number=0
|
||||||
|
|
||||||
plan_tests () {
|
|
||||||
{ { local BASH_XTRACEFD=3; } 2> /dev/null
|
|
||||||
if [ -n "$planned_tests" ]; then
|
|
||||||
echo "Bail out! plan_tests called more than once"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
planned_tests="$1"
|
|
||||||
echo "1..$planned_tests"
|
|
||||||
} 3> /dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
done_testing () {
|
done_testing () {
|
||||||
{ { local BASH_XTRACEFD=3; } 2> /dev/null
|
{ { local BASH_XTRACEFD=3; } 2> /dev/null
|
||||||
if [ -z "$planned_tests" ]; then
|
echo "1..$test_number"
|
||||||
echo "1..$test_number"
|
|
||||||
elif [ "$planned_tests" != "$test_number" ]; then
|
|
||||||
echo "Bail out! Expected $planned_tests tests, but saw $test_number tests"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo "# Done testing"
|
echo "# Done testing"
|
||||||
} 3> /dev/null
|
} 3> /dev/null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user