Re: [PATCH 1/2] CI: Simplify directories creation

Anthony PERARD <[email protected]>
Newsgroups org.xenproject.lists.xen-devel
Message-ID <1785871743.8631fc262581453bbf619ec5b2062170.19fce4038dd000e099@vates.tech>
On Tue, Aug 04, 2026 at 06:42:17PM +0100, Frediano Ziglio wrote:
> diff --git a/automation/scripts/qemu-alpine-x86_64.sh b/automation/scripts/qemu-alpine-x86_64.sh
> index 242ffca693..60f5cc49fc 100755
> --- a/automation/scripts/qemu-alpine-x86_64.sh
> +++ b/automation/scripts/qemu-alpine-x86_64.sh
> @@ -4,16 +4,7 @@ set -ex -o pipefail
>  
>  # DomU Busybox
>  cd binaries
> -mkdir -p initrd
> -mkdir -p initrd/bin
> -mkdir -p initrd/sbin
> -mkdir -p initrd/etc
> -mkdir -p initrd/dev
> -mkdir -p initrd/proc
> -mkdir -p initrd/sys
> -mkdir -p initrd/lib
> -mkdir -p initrd/var
> -mkdir -p initrd/mnt
> +mkdir -p initrd/{bin,sbin,etc,dev,proc,sys,lib,var,mnt}

This makes it really hard to find out if more directory or less
directory are been created. When reviewing a patch, we don't see what
changed in a line without using more complex tools.

For this patch, I have now idea at a glimpse if all the directory that
was created before are still created.

In the future, we might need to create more directories, this would
change on very long line to another, and make it hard to find out what
was the logical change, by just looking at the output of `diff -u`.

So I don't see this patch as an improvement.

But that just my opinion, but that would apply equally to other similar
changes, like packing all the variable declaration on a single line in C.

Cheers,


-- 
Anthony Perard | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.