Skip to content

Commit c621a68

Browse files
authored
Add sleeps after Unity calls in testapp builder (#1000)
1 parent b734e06 commit c621a68

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/gha/build_testapps.py

+5
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ def _switch_to_latest_runtime(dir_helper, arg_builder):
821821
dir_helper.copy_editor_script("RuntimeSwitcher.cs")
822822
arg_builder.set_log_file(dir_helper.make_log_path("switch_runtime"))
823823
_run(arg_builder.get_args_for_method("RuntimeSwitcher.SwitchToLatest"))
824+
time.sleep(0.5)
824825

825826

826827
def _create_unity_project(dir_helper):
@@ -845,6 +846,7 @@ def _import_unity_plugins(dir_helper, arg_builder):
845846
name = os.path.splitext(os.path.basename(plugin_path))[0]
846847
arg_builder.set_log_file(dir_helper.make_log_path("import_" + name))
847848
_run(arg_builder.get_args_for_import(plugin_path))
849+
time.sleep(0.5)
848850

849851

850852
# Unity Package Manager is Unity's newer style of packaging.
@@ -861,6 +863,7 @@ def _import_upm_packages(dir_helper, arg_builder):
861863
arg_builder.get_args_for_method(
862864
method="PackageImporter.Import",
863865
method_args=["-PackageImporter.package", package]))
866+
time.sleep(0.5)
864867

865868

866869
# In an automated context with batchmode, it was found that these
@@ -877,13 +880,15 @@ def _enable_firebase_assemblies(dir_helper, arg_builder):
877880
method_args=[
878881
"-PluginToggler.plugins",
879882
"Firebase.Editor.dll,Google.VersionHandlerImpl"]))
883+
time.sleep(0.5)
880884

881885

882886
def _edm4u_update(dir_helper, arg_builder):
883887
"""Tells EDM4U (External Dependency Manager For Unity) to update."""
884888
arg_builder.set_log_file(dir_helper.make_log_path("versionhandler_update"))
885889
logging.info("Running VersionHandler.UpdateNow...")
886890
_run(arg_builder.get_args_for_method("Google.VersionHandler.UpdateNow"))
891+
time.sleep(0.5)
887892

888893

889894
def _copy_unity_assets(dir_helper, files_to_ignore):

0 commit comments

Comments
 (0)