Skip to content

Commit 0a7786e

Browse files
blakdragan7blakdragan7
andcommitted
refactor(tests): Refactored deploy_tests to use the same file instead of one per console (#12116) 478898e6b4
Co-authored-by: Jonathon Copeland <jcopela4@gmail.com>
1 parent 83ef566 commit 0a7786e

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.rive_head

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5483819400b1665933cc80e619f42fb171acf2a6
1+
478898e6b46bf43071191d62104242ae799b5620

tests/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# rive_tests package
2+
__version__ = '1'

tests/deploy_tests.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
default="host",
7272
choices=["host", "android", "ios", "iossim", "unreal",
7373
"unreal_android", "webbrowser", "webserver",
74-
"webbrowserandroid", "webserverandroid"],
74+
"webbrowserandroid", "webserverandroid", 'console'],
7575
help="which platform to run on")
7676
parser.add_argument("-a", "--android-arch",
7777
default="arm64",
@@ -698,6 +698,9 @@ def main():
698698
args.builddir = f"out/wasm_{buildconfig}"
699699
if args.backend == None:
700700
args.backend = "gl"
701+
elif args.target == "console":
702+
args.jobs_per_tool = 1
703+
args.remote = True
701704
else:
702705
assert(args.target == "host")
703706
if args.builddir == None:
@@ -850,7 +853,8 @@ def main():
850853
serial_deploy = not args.server_only and ("ios" in args.target or
851854
args.target == "android" or
852855
"unreal" in args.target or
853-
args.target.startswith("web"))
856+
args.target.startswith("web") or
857+
args.target == "console")
854858
procs = []
855859

856860
# Serially deployed targets are finished once they've sent their

0 commit comments

Comments
 (0)