Skip to content

Commit ffde159

Browse files
committed
ci-test
1 parent bfae0b0 commit ffde159

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

platform/aarch64/qemu-gicv3/test/systemtest/trootfs_deploy.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,14 @@ deploy_artifacts() {
9595
cd "${WORKSPACE_ROOT}/platform/aarch64/qemu-gicv3/image/virtdisk"
9696
mount_rootfs
9797
prepare_sources
98-
if ! build_hvisor_tool; then
99-
echo "ERROR: Build failed" >&2
100-
exit 1
98+
if [ "$SKIP_BUILD" != "true" ]; then
99+
echo "--- Build step is enabled. Starting build... ---"
100+
if ! build_hvisor_tool; then
101+
echo "ERROR: Build failed" >&2
102+
exit 1
103+
fi
104+
else
105+
echo "--- SKIP_BUILD is true. Skipping build step. ---"
101106
fi
102107
deploy_artifacts
103108
echo "=== Unmounting rootfs ==="

platform/riscv64/qemu-plic/test/systemtest/trootfs_deploy.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,14 @@ deploy_artifacts() {
9696
cd "${WORKSPACE_ROOT}/platform/riscv64/qemu-plic/image/virtdisk"
9797
mount_rootfs
9898
prepare_sources
99-
if ! build_hvisor_tool; then
100-
echo "ERROR: Build failed" >&2
101-
exit 1
99+
if [ "$SKIP_BUILD" != "true" ]; then
100+
echo "--- Build step is enabled. Starting build... ---"
101+
if ! build_hvisor_tool; then
102+
echo "ERROR: Build failed" >&2
103+
exit 1
104+
fi
105+
else
106+
echo "--- SKIP_BUILD is true. Skipping build step. ---"
102107
fi
103108
deploy_artifacts
104109
echo "=== Unmounting rootfs ==="

0 commit comments

Comments
 (0)