forked from rhinstaller/anaconda-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request rhinstaller#595 from KKoukiou/INSTALLER-4108
tests: generate report.json for TEST_SCENARIO=compose-XYZ
- Loading branch information
Showing
4 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ | |
/test/common/ | ||
/test/images | ||
/test/ks*.cfg | ||
/test/report.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
# This script creates the report.json which will be used by the CI run to report the test results to OpenQA. | ||
# Here is only fills in the metadata section. The tests section will be filled by the test run. | ||
# | ||
# Structure of report.json | ||
# { | ||
# "metadata": { | ||
# "compose": "rawhide/Fedora-Rawhide-20250117.n.0", | ||
# "test_env": "qemu-x86_64", | ||
# }, | ||
# "tests": [ | ||
# { | ||
# "test_name": "TestClassX1.test_example_feature", | ||
# "firmware": "uefi", | ||
# "openqa_test": "https://fedoraproject.org/wiki/QA:Testcase_webui_partitioning_guided_multi_select", | ||
# "status": "pass", | ||
# }, | ||
# { | ||
# "test_name": "TestClassX2.test_another_feature", | ||
# "firmware": "bios", | ||
# "openqa_test": "https://fedoraproject.org/wiki/QA:Testcase_webui_partitioning_guided_free_space", | ||
# "status": "fail", | ||
# } | ||
# ], | ||
# "timestamp": "2025-01-17T10:30:00Z" | ||
# } | ||
|
||
COMPOSE=$TEST_COMPOSE | ||
TEST_ENV="qemu-x86_64" | ||
|
||
cat <<EOF > ./test/report.json | ||
{ | ||
"metadata": { | ||
"compose": "$COMPOSE", | ||
"test_env": "$TEST_ENV" | ||
}, | ||
"tests": [], | ||
"timestamp": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")" | ||
} | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters