Merge "CI: Split --test-command argument." into 16

This commit is contained in:
Jenkins2
2018-07-23 13:45:21 -05:00
committed by Gerrit Code Review
6 changed files with 8 additions and 8 deletions

View File

@@ -167,7 +167,7 @@ pipeline {
userRemoteConfigs: [[name: env.GERRIT_NAME, url: testsuiteUrl]] userRemoteConfigs: [[name: env.GERRIT_NAME, url: testsuiteUrl]]
] ]
sh "sudo tests/CI/runTestsuite.sh --testsuite-dir='${groupDir}' --test-command='${groupTestcmd}'" sh "sudo tests/CI/runTestsuite.sh --testsuite-dir='${groupDir}' --testsuite-command='${groupTestcmd}'"
archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: true, archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: true,
artifacts: "${groupDir}/asterisk-test-suite-report.xml, ${groupDir}/logs/**, ${groupDir}/core*.txt" artifacts: "${groupDir}/asterisk-test-suite-report.xml, ${groupDir}/logs/**, ${groupDir}/core*.txt"

View File

@@ -114,7 +114,7 @@ pipeline {
userRemoteConfigs: [[url: testsuiteUrl]] userRemoteConfigs: [[url: testsuiteUrl]]
] ]
sh "sudo tests/CI/runTestsuite.sh ${groupRunTestsuiteOptions} --testsuite-dir='${groupDir}' --test-command='${groupTestcmd}'" sh "sudo tests/CI/runTestsuite.sh ${groupRunTestsuiteOptions} --testsuite-dir='${groupDir}' --testsuite-command='${groupTestcmd}'"
archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: true, archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: true,
artifacts: "${groupDir}/asterisk-test-suite-report.xml, ${groupDir}/logs/**, ${groupDir}/core*.txt" artifacts: "${groupDir}/asterisk-test-suite-report.xml, ${groupDir}/logs/**, ${groupDir}/core*.txt"

View File

@@ -92,7 +92,7 @@ pipeline {
userRemoteConfigs: [[url: testsuiteUrl]] userRemoteConfigs: [[url: testsuiteUrl]]
] ]
sh "sudo tests/CI/runTestsuite.sh --testsuite-dir='${groupDir}' --test-command='${groupTestcmd}'" sh "sudo tests/CI/runTestsuite.sh --testsuite-dir='${groupDir}' --testsuite-command='${groupTestcmd}'"
archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: true, archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: true,
artifacts: "${groupDir}/asterisk-test-suite-report.xml, ${groupDir}/logs/**, ${groupDir}/core*.txt" artifacts: "${groupDir}/asterisk-test-suite-report.xml, ${groupDir}/logs/**, ${groupDir}/core*.txt"

View File

@@ -13,8 +13,8 @@ if [ $REALTIME -eq 1 ] ; then
fi fi
export PYTHONPATH=./lib/python/ export PYTHONPATH=./lib/python/
echo "Running tests ${TEST_COMMAND}" echo "Running tests ${TESTSUITE_COMMAND}"
./runtests.py --cleanup ${TEST_COMMAND} | contrib/scripts/pretty_print --no-color --no-timer --term-width=120 --show-errors || : ./runtests.py --cleanup ${TESTSUITE_COMMAND} | contrib/scripts/pretty_print --no-color --no-timer --term-width=120 --show-errors || :
if [ $REALTIME -eq 1 ] ; then if [ $REALTIME -eq 1 ] ; then
$CIDIR/teardownRealtime.sh $CIDIR/teardownRealtime.sh
@@ -26,4 +26,4 @@ if [ -f core* ] ; then
exit 1 exit 1
fi fi
popd popd

View File

@@ -60,7 +60,7 @@ for n in `seq 1 5` ; do
$ASTERISK -rx "core waitfullybooted" -C $CONFFILE && break $ASTERISK -rx "core waitfullybooted" -C $CONFFILE && break
done done
sleep 1 sleep 1
$ASTERISK -rx "${TEST_COMMAND:-test execute all}" -C $CONFFILE $ASTERISK -rx "${UNITTEST_COMMAND:-test execute all}" -C $CONFFILE
$ASTERISK -rx "test show results failed" -C $CONFFILE $ASTERISK -rx "test show results failed" -C $CONFFILE
$ASTERISK -rx "test generate results xml $OUTPUTFILE" -C $CONFFILE $ASTERISK -rx "test generate results xml $OUTPUTFILE" -C $CONFFILE
$ASTERISK -rx "core stop now" -C $CONFFILE $ASTERISK -rx "core stop now" -C $CONFFILE

View File

@@ -136,7 +136,7 @@ pipeline {
sh 'sudo ./tests/CI/installAsterisk.sh --user-group=jenkins:users' sh 'sudo ./tests/CI/installAsterisk.sh --user-group=jenkins:users'
sh "tests/CI/runUnittests.sh --user-group=jenkins:users --output-dir='${outputdir}' --output-xml='${outputfile}' --test-command='${testcmd}'" sh "tests/CI/runUnittests.sh --user-group=jenkins:users --output-dir='${outputdir}' --output-xml='${outputfile}' --unittest-command='${testcmd}'"
archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: true, archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: true,
artifacts: "${outputdir}/**" artifacts: "${outputdir}/**"