Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Dec 21, 2022
1 parent f9a3840 commit 199f1b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
15 changes: 1 addition & 14 deletions .circleci/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ jobs:
store_results:
type: boolean
description: Collect and store test results in JUnit XML format for Insights
default: false
default: true
environment:
TESTSPEC: <<parameters.spec>>
PRESET: <<parameters.preset>>
Expand Down Expand Up @@ -776,7 +776,6 @@ workflows:
requires:
- otp_25_docker
filters: *all_tags
store_results: true
- big_tests_in_docker:
name: mysql_redis_25
executor: otp_25_mysql_redis
Expand All @@ -785,7 +784,6 @@ workflows:
requires:
- otp_25_docker
filters: *all_tags
store_results: true
- big_tests_in_docker:
name: dynamic_domains_mysql_redis_25
spec: dynamic_domains.spec
Expand All @@ -795,7 +793,6 @@ workflows:
requires:
- otp_25_docker
filters: *all_tags
store_results: true
- big_tests_in_docker:
name: pgsql_mnesia_24
executor: otp_24_pgsql_redis
Expand All @@ -804,7 +801,6 @@ workflows:
requires:
- otp_24_docker
filters: *all_tags
store_results: true
- big_tests_in_docker:
name: pgsql_mnesia_25
executor: otp_25_pgsql_redis
Expand All @@ -813,7 +809,6 @@ workflows:
requires:
- otp_25_docker
filters: *all_tags
store_results: true
- big_tests_in_docker:
name: dynamic_domains_pgsql_mnesia_25
spec: dynamic_domains.spec
Expand All @@ -823,7 +818,6 @@ workflows:
requires:
- otp_25_docker
filters: *all_tags
store_results: true
- big_tests_in_docker:
name: dynamic_domains_pgsql_mnesia_24
spec: dynamic_domains.spec
Expand All @@ -833,7 +827,6 @@ workflows:
requires:
- otp_24_docker
filters: *all_tags
store_results: true
- big_tests_in_docker:
name: mssql_mnesia_25
executor: otp_25_mssql_redis
Expand All @@ -843,7 +836,6 @@ workflows:
requires:
- otp_25_docker
filters: *all_tags
store_results: true
- big_tests_in_docker:
name: dynamic_domains_mssql_mnesia_25
spec: dynamic_domains.spec
Expand All @@ -854,7 +846,6 @@ workflows:
requires:
- otp_25_docker
filters: *all_tags
store_results: true
- big_tests_in_docker:
name: riak_mnesia_24
executor: otp_24_riak_redis
Expand All @@ -864,7 +855,6 @@ workflows:
requires:
- otp_24_docker
filters: *all_tags
store_results: true
- big_tests_in_docker:
name: ldap_mnesia_24
executor: otp_24_ldap_redis
Expand All @@ -874,7 +864,6 @@ workflows:
requires:
- otp_24_docker
filters: *all_tags
store_results: true
- big_tests_in_docker:
name: ldap_mnesia_25
executor: otp_25_ldap_redis
Expand All @@ -884,7 +873,6 @@ workflows:
requires:
- otp_25_docker
filters: *all_tags
store_results: true
- big_tests_in_docker:
name: elasticsearch_and_cassandra_25
executor: otp_25_elasticsearch_cassandra
Expand All @@ -894,7 +882,6 @@ workflows:
requires:
- otp_25_docker
filters: *all_tags
store_results: true
# ============= DOCKER IMAGE BUILD & UPLOAD =============
- docker_image:
name: docker_build_and_ship
Expand Down
12 changes: 9 additions & 3 deletions big_tests/src/cth_surefire.erl
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,11 @@ to_xml(#testcase{ group = Group, classname = CL, log = L, url = U,
passed ->
[];
{skipped,Reason} ->
["<skipped type=\"skip\" message=\"Test ",N," in ",CL,
" skipped!\">", sanitize(Reason),"</skipped>"];
["<skipped type=\"skip\" message=\"Test ", N, " in ", CL, maybe_group(Group),
" skipped!\">", sanitize(Reason),"</skipped>"];
{fail,Reason} ->
["<failure message=\"Test ",N," in ",CL," failed!\" type=\"crash\">",
["<failure message=\"Test ", N, " in ", CL, maybe_group(Group),
" failed!\" type=\"crash\">",
sanitize(Reason),"</failure>"]
end,"</testcase>"];
to_xml(#testsuite{ package = P, hostname = H, errors = E, failures = F,
Expand All @@ -417,6 +418,11 @@ to_xml(#state{ test_suites = TestSuites, axis = Axis, properties = Props }) ->
["<testsuites>",properties_to_xml(Axis,Props),
[to_xml(TestSuite) || TestSuite <- TestSuites],"</testsuites>"].

maybe_group("") ->
[];
maybe_group(Group) ->
[" (group: ", Group, ")"].

properties_to_xml([],[]) ->
[];
properties_to_xml(Axis,Props) ->
Expand Down

0 comments on commit 199f1b4

Please sign in to comment.