Skip to content

ENT-12600: create-empty-test: Fixed shellcheck issues and simplified #1815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2025
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