File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,17 @@ logError(){
8989 printf " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
9090}
9191
92+ # Unity Version -----------------------------------------------------------------
93+
94+ unity_version=sed -n ' s/.*"editorVersion": *"\([^" (]*\).*/\1/p' artifacts/TestResults.js
95+
96+ # ensure arguments were passed and the ports are defined
97+ if [ -z " $unity_version " ]; then
98+ logMessage " Failed to find unity version: $unity_version ! Using default string" ;
99+ elif [[ " $echo_port " == " $service_port " ]]; then
100+ logMessage " Found Unity version: $unity_version " ;
101+ fi
102+
92103# Protocol Buffer Compiler ------------------------------------------------------
93104
94105# Apply any updates
@@ -153,5 +164,5 @@ cargo build --release --locked
153164# This means the service will exit after each test. The infinite loop will immediately restart the service each time it exits.
154165logMessage " Running service integration tests..."
155166while : ; do
156- ./target/release/comb-server -l error --metrics-port 5000 standalone --port $service_port -t 60m;
167+ ./target/release/comb-server -l error --metrics-port 5000 standalone --port $service_port -t 60m --unity-version $unity_version ;
157168done & # <- use & to run the entire loop in the background
You can’t perform that action at this time.
0 commit comments