Skip to content

Commit 9d780c1

Browse files
committed
chore: Pass the unity version to the CMB service
1 parent 46c84f9 commit 9d780c1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Tools/CI/service.cmb/run_cmb_service.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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.
154165
logMessage "Running service integration tests..."
155166
while :; 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;
157168
done & # <- use & to run the entire loop in the background

0 commit comments

Comments
 (0)