Re: [PATCH 1/2] CI: Simplify directories creation
Anthony PERARD <[email protected]> Tue, 4 Aug 2026 21:29:01 +0200
| Newsgroups | gmane.comp.emulators.xen.devel |
|---|---|
| Message-ID | <1785871743.8631fc262581453bbf619ec5b2062170.19fce4038dd000e099@vates.tech> |
---=Part.1c3f.63ba4c08b36f0347.19fce4035b7.9383ca257edc557f=-
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
On Tue, Aug 04, 2026 at 06:42:17PM +0100, Frediano Ziglio wrote:
> diff --git a/automation/scripts/qemu-alpine-x86_64=2Esh b/automation/scr=
ipts/qemu-alpine-x86_64=2Esh
> index 242ffca693=2E=2E60f5cc49fc 100755
> --- a/automation/scripts/qemu-alpine-x86_64=2Esh
> +++ b/automation/scripts/qemu-alpine-x86_64=2Esh
> @@ -4,16 +4,7 @@ set -ex -o pipefail
> =20
> # 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=2E When reviewing a patch, we don't see what
changed in a line without using more complex tools=2E
For this patch, I have now idea at a glimpse if all the directory that
was created before are still created=2E
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`=2E
So I don't see this patch as an improvement=2E
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=
=2E
Cheers,
--
Anthony Perard | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vate=
s solutions
web: https://vates=2Etech
---=Part.1c3f.63ba4c08b36f0347.19fce4035b7.9383ca257edc557f=---