mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Use only AYON_IN_TESTS to drive automatic tests
--automatic-tests is removed in AYON
This commit is contained in:
parent
7b25502044
commit
237d9a18e4
3 changed files with 4 additions and 8 deletions
|
|
@ -156,9 +156,6 @@ class ProcessSubmittedCacheJobOnFarm(pyblish.api.InstancePlugin,
|
|||
"--targets", "farm"
|
||||
]
|
||||
|
||||
if is_in_tests():
|
||||
args.append("--automatic-tests")
|
||||
|
||||
# Generate the payload for Deadline submission
|
||||
secondary_pool = (
|
||||
self.deadline_pool_secondary or instance.data.get("secondaryPool")
|
||||
|
|
|
|||
|
|
@ -234,9 +234,6 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin,
|
|||
"--targets", "farm"
|
||||
]
|
||||
|
||||
if is_in_tests():
|
||||
args.append("--automatic-tests")
|
||||
|
||||
# Generate the payload for Deadline submission
|
||||
secondary_pool = (
|
||||
self.deadline_pool_secondary or instance.data.get("secondaryPool")
|
||||
|
|
|
|||
|
|
@ -502,8 +502,6 @@ def inject_ayon_environment(deadlinePlugin):
|
|||
"extractenvironments",
|
||||
export_url
|
||||
]
|
||||
if job.GetJobEnvironmentKeyValue("AYON_IN_TESTS"):
|
||||
args.append("--automatic-tests")
|
||||
|
||||
for key, value in add_kwargs.items():
|
||||
args.extend(["--{}".format(key), value])
|
||||
|
|
@ -517,6 +515,10 @@ def inject_ayon_environment(deadlinePlugin):
|
|||
"AYON_API_KEY": ayon_api_key,
|
||||
"AYON_BUNDLE_NAME": ayon_bundle_name,
|
||||
}
|
||||
|
||||
automatic_tests = job.GetJobEnvironmentKeyValue("AYON_IN_TESTS")
|
||||
if automatic_tests:
|
||||
environment["AYON_IN_TESTS"] = automatic_tests
|
||||
for env, val in environment.items():
|
||||
# Add the env var for the Render Plugin that is about to render
|
||||
deadlinePlugin.SetEnvironmentVariable(env, val)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue