Skip to content

Commit 3a528c6

Browse files
committed
Testing specifying exact UTR version
1 parent 005994e commit 3a528c6

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.yamato/code-coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ code_coverage_{{ platform.name }}_{{ editor }}:
3636
{% if platform.model %}
3737
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
3838
{% endif %}
39+
variables:
40+
UTR_VERSION: {{ utr_version }}
3941
commands:
4042
- unity-downloader-cli --fast --wait -u {{ editor }} -c Editor {% if platform.name == "mac" %} --arch arm64 {% endif %} # For macOS we use ARM64 models
4143
- upm-pvp create-test-project test-project --packages "upm-ci~/packages/*.tgz" --unity .Editor

.yamato/project-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ test_{{ project.name }}_{{ platform.name }}_{{ editor }}:
3636
{% if platform.model %}
3737
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
3838
{% endif %}
39+
variables:
40+
UTR_VERSION: {{ utr_version }}
3941
commands:
4042
- unity-downloader-cli --fast --wait -u {{ editor }} -c Editor {% if platform.name == "mac" %} --arch arm64 {% endif %} # For macOS we use ARM64 models. Installing basic editor for tests execution
4143
- UnifiedTestRunner --testproject={{ project.path }} --suite=editor --suite=playmode --artifacts-path=test-results --editor-location=.Editor --rerun-strategy=Test --retry={{ num_test_retries }} --clean-library-on-rerun --timeout={{ test_timeout }}

.yamato/project.metafile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
# base --> Indicates the base operating system for build operations (e.g., win, mac)
1717
# architecture --> Specifies the target CPU architecture (e.g., armv7, arm64)
1818

19-
2019
# SMALL AGENT CONFIGURATION---------------------------------------------------------------------------------------------------
2120
# The small agent was created to handle jobs that don't involve running Unity and are in general super light when it comes to resource usage (for example pack job).
2221
# It uses ubuntu since Linux VMs are faster and cheaper to provision than Mac or Windows Virtual Machines (VMs).
@@ -214,6 +213,7 @@ projects:
214213

215214
# UNIFIED TEST RUNNER CONFIGURATIONS--------------------------------------------------------------------
216215
# Shared settings for the UnifiedTestRunner
216+
utr_version: 1.46.0
217217

218218
# Configures the number of times a failed test is retried before it is considered failed.
219219
# Helps handle flaky tests

0 commit comments

Comments
 (0)