Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 10 additions & 13 deletions build-scripts/create-empty-test
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
#!/bin/sh

# Windows and possibly other platforms do not produce tests.
# In order to keep Jenkins happy, we just create an empty
# test report saying that there were no tests to report.

NO_TESTS=$BASEDIR/core/tests/unit/no_tests.xml
touch $NO_TESTS
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > $NO_TESTS
echo "<testsuite name=\"no_tests_to_report\">" >> $NO_TESTS
echo "<testcase name=\"no_tests\" />" >> $NO_TESTS
echo "</testsuite>" >> $NO_TESTS
NO_TESTS=$BASEDIR/nova/tests/unit/no_tests.xml
touch $NO_TESTS
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > $NO_TESTS
echo "<testsuite name=\"no_tests_to_report\">" >> $NO_TESTS
echo "<testcase name=\"no_tests\" />" >> $NO_TESTS
echo "</testsuite>" >> $NO_TESTS

for repo in core nova; do
cat << EOF > "$BASEDIR"/"$repo"/tests/unit/no_tests.xml
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<testsuite name=\"no_tests_to_report\">
<testcase name=\"no_tests\" />
</testsuite>
EOF
done
Loading