From d430811e77765109e7f2e44de4abc37251fb36c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Fri, 7 Aug 2026 15:49:44 +0800 Subject: [PATCH] fix(os): read nested execution health fields --- .../scripts/test-jd-language-primary-target-contract.sh | 6 +++++- .../scripts/verify-jd-language-primary-acceptance.sh | 7 +++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/product-source/hololake-platform/guanghu-os/scripts/test-jd-language-primary-target-contract.sh b/product-source/hololake-platform/guanghu-os/scripts/test-jd-language-primary-target-contract.sh index 8d57fce..c80e3fb 100644 --- a/product-source/hololake-platform/guanghu-os/scripts/test-jd-language-primary-target-contract.sh +++ b/product-source/hololake-platform/guanghu-os/scripts/test-jd-language-primary-target-contract.sh @@ -65,7 +65,11 @@ done grep -Fq 'https://guanghulab.com/code/' "${acceptance}" grep -Fq 'https://guanghulab.com/api/ai/v1/anchor' "${acceptance}" grep -Fq '"phase" == "RUNNING_COMPANION"' "${acceptance}" -grep -Fq '"execution_substrate.state" == "PASS_100"' "${acceptance}" +grep -Fq '.execution_substrate.state == "PASS_100"' "${acceptance}" +grep -Fq '.execution_substrate.linux_role == "COOPERATIVE_EXECUTION_SUBSTRATE"' \ + "${acceptance}" +grep -Fq '.execution_substrate.arbitrary_shell == false' "${acceptance}" +! grep -Fq '."execution_substrate.state"' "${acceptance}" grep -Fq 'boot_changed: false' "${acceptance}" grep -Fq 'install_world_version' "${installer}" diff --git a/product-source/hololake-platform/guanghu-os/scripts/verify-jd-language-primary-acceptance.sh b/product-source/hololake-platform/guanghu-os/scripts/verify-jd-language-primary-acceptance.sh index b6a2340..a02df2f 100644 --- a/product-source/hololake-platform/guanghu-os/scripts/verify-jd-language-primary-acceptance.sh +++ b/product-source/hololake-platform/guanghu-os/scripts/verify-jd-language-primary-acceptance.sh @@ -45,9 +45,9 @@ for _attempt in $(seq 1 30); do if test "${services_ready}" = 1 && jq -e ' ."phase" == "RUNNING_COMPANION" - and ."execution_substrate.state" == "PASS_100" - and ."execution_substrate.linux_role" == "COOPERATIVE_EXECUTION_SUBSTRATE" - and ."execution_substrate.arbitrary_shell" == false + and .execution_substrate.state == "PASS_100" + and .execution_substrate.linux_role == "COOPERATIVE_EXECUTION_SUBSTRATE" + and .execution_substrate.arbitrary_shell == false ' <<<"${controller_json}" >/dev/null 2>&1 && jq -e ' .ok == true @@ -104,4 +104,3 @@ chmod 0600 "${receipt}.tmp" mv "${receipt}.tmp" "${receipt}" printf 'GUANGHU_LANGUAGE_PRIMARY_BOOT_PASS_100 receipt=%s\n' "${receipt}" -