diff --git a/product-source/hololake-platform/guanghu-os/scripts/build-guanghu-cross-root-fixture.sh b/product-source/hololake-platform/guanghu-os/scripts/build-guanghu-cross-root-fixture.sh index d08da9302..7bc997377 100755 --- a/product-source/hololake-platform/guanghu-os/scripts/build-guanghu-cross-root-fixture.sh +++ b/product-source/hololake-platform/guanghu-os/scripts/build-guanghu-cross-root-fixture.sh @@ -35,7 +35,7 @@ mkdir -p "${staging}/bin" "${staging}/sbin" "${staging}/usr/lib/guanghu" \ "${staging}/usr/share/guanghu/repository-service-equivalence" \ "$(dirname "${output}")" install -m 0755 /bin/busybox "${staging}/bin/busybox" -for applet in sh sleep cat grep tr stat mkdir mv chmod readlink kill sync poweroff sed id httpd wget rm; do +for applet in sh sleep cat grep tr stat mkdir mv chmod readlink kill sync poweroff sed id httpd wget rm ip; do ln -s busybox "${staging}/bin/${applet}" done install -m 0755 "${supervisor}" "${staging}/usr/lib/guanghu/guanghu-root-supervisor" @@ -64,6 +64,7 @@ kill -0 "${supervisor_pid}" grep -Fq '"stage":"ROOT_SUPERVISOR_ACTIVE"' /run/guanghu/root-supervisor/state.json echo "GUANGHU_CROSS_ROOT_PERSISTENCE_VERIFIED pid=${supervisor_pid}" if [ -x /usr/lib/guanghu/guanghu-repository-bridge-lifecycle ]; then + ip link set lo up /usr/lib/guanghu/guanghu-repository-bridge-lifecycle run REQ-QEMU-CROSS-ROOT-001 grep -Fq '"result":"PASS_100"' /guanghu/receipts/repository-bridge-lifecycle/REQ-QEMU-CROSS-ROOT-001.json grep -Fq '"final_state":"DORMANT"' /guanghu/receipts/repository-bridge-lifecycle/REQ-QEMU-CROSS-ROOT-001.json diff --git a/product-source/hololake-platform/guanghu-os/scripts/test-cross-root-repository-service-equivalence.sh b/product-source/hololake-platform/guanghu-os/scripts/test-cross-root-repository-service-equivalence.sh index 493825b76..8e0625c4c 100644 --- a/product-source/hololake-platform/guanghu-os/scripts/test-cross-root-repository-service-equivalence.sh +++ b/product-source/hololake-platform/guanghu-os/scripts/test-cross-root-repository-service-equivalence.sh @@ -11,6 +11,7 @@ sh -n "${controller}" grep -Fq 'httpd -f -p 127.0.0.1:39301' "${backend}" grep -Fq 'repository-main-readback' "${backend}" grep -Fq 'service reclaim failed' "${backend}" +grep -Fq 'ip link set lo up' "${builder}" grep -Fq 'GUANGHU_CROSS_ROOT_REPOSITORY_SERVICE_EQUIVALENCE_VERIFIED' "${builder}" grep -Fq 'REQ-QEMU-CROSS-ROOT-001' "${builder}" grep -Fq 'final_state":"DORMANT' "${builder}"