Skip to content

Commit

Permalink
test/filesystem: move blueprint writing to function
Browse files Browse the repository at this point in the history
Move the creation of the blueprint to a function.  We'll then add a
separate blueprint function for the new, alternative partitioning
customization.
  • Loading branch information
achilleas-k committed Dec 18, 2024
1 parent edf99d8 commit 010c6fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/cases/filesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ check_result () {

greenprint "🚀 Checking custom filesystems (success case)"

# Write a basic blueprint for our image.
tee "$BLUEPRINT_FILE" > /dev/null << EOF
write_fs_blueprint() {
# Write a basic blueprint for our image.
tee "$BLUEPRINT_FILE" > /dev/null << EOF
name = "custom-filesystem"
description = "A base system with custom mountpoints"
version = "0.0.1"
Expand Down Expand Up @@ -195,6 +196,9 @@ mountpoint = "/foobar"
size = 131072000
EOF
fi
}

write_fs_blueprint

build_image "$BLUEPRINT_FILE" custom-filesystem qcow2 false

Expand Down

0 comments on commit 010c6fe

Please sign in to comment.