mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
CI: Add teardownRealtime
Change-Id: I2fe55c38607eaec2fbf69ef23a5019e0c443a64b
This commit is contained in:
@@ -16,6 +16,10 @@ export PYTHONPATH=./lib/python/
|
||||
echo "Running tests ${TEST_COMMAND}"
|
||||
./runtests.py --cleanup ${TEST_COMMAND} | contrib/scripts/pretty_print --no-color --no-timer --term-width=120 --show-errors || :
|
||||
|
||||
if [ $REALTIME -eq 0 ] ; then
|
||||
$CIDIR/teardownRealtime.sh
|
||||
fi
|
||||
|
||||
if [ -f core* ] ; then
|
||||
echo "*** Found a core file after running unit tests ***"
|
||||
/var/lib/asterisk/scripts/ast_coredumper --no-default-search core*
|
||||
|
@@ -4,7 +4,9 @@ source $CIDIR/ci.functions
|
||||
|
||||
set -e
|
||||
|
||||
cat >test-config.yaml <<EOF
|
||||
cp test-config.yaml test-config.orig.yaml
|
||||
|
||||
cat >test-config.yaml <<-EOF
|
||||
global-settings:
|
||||
test-configuration: config-realtime
|
||||
|
||||
|
6
tests/CI/teardownRealtime.sh
Executable file
6
tests/CI/teardownRealtime.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
CIDIR=$(dirname $(readlink -fn $0))
|
||||
source $CIDIR/ci.functions
|
||||
|
||||
cp test-config.orig.yaml test-config.yaml
|
||||
psql --username=asterisk --host=localhost --db=asterisk --command='DROP OWNED BY asterisk CASCADE'
|
Reference in New Issue
Block a user