Skip to content

Commit de7b2e9

Browse files
committed
fixed outputing the buildlog upon failure
1 parent c503377 commit de7b2e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/build_azl3_arm_raw.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ echo "Generating binary with go build..."
226226
go build ./cmd/os-image-composer
227227

228228
build_azl3_raw_image() {
229-
echo "Building AZL3 raw Image. (using os-image-composer binary)"
229+
echo "Building AZL3 raw Image for ARM64. (using os-image-composer binary)"
230230
# Ensure we're in the working directory before starting builds
231231
echo "Ensuring we're in the working directory before starting builds..."
232232
cd "$WORKING_DIR"
@@ -247,15 +247,15 @@ build_azl3_raw_image() {
247247
echo "QEMU boot test PASSED for AZL3 raw image"
248248
else
249249
echo "QEMU boot test FAILED for AZL3 raw image"
250-
echo "Build output:"
251-
echo "$output"
252250
exit 1
253251
fi
254252
# Clean up after QEMU test to free space
255253
cleanup_image_files raw
256254
fi
257255
else
258256
echo "AZL3 raw Image build failed."
257+
echo "Build output:"
258+
echo "$output"
259259
exit 1 # Exit with error if build fails
260260
fi
261261
}

0 commit comments

Comments
 (0)