From: Zbigniew Jędrzejewski-Szmek Date: Thu, 30 Jul 2020 14:03:53 +0000 (+0200) Subject: test-repart: also print json output X-Git-Tag: v247-rc1~465^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16258%2Fhead;p=thirdparty%2Fsystemd.git test-repart: also print json output This doesn't really "test" anything, but a human can look at it. --- diff --git a/src/partition/test-repart.sh b/src/partition/test-repart.sh index bfb9bcb4c9b..730f9cc9c3f 100755 --- a/src/partition/test-repart.sh +++ b/src/partition/test-repart.sh @@ -10,6 +10,8 @@ mkdir -p $D/definitions SEED=e2a40bf9-73f1-4278-9160-49c031e7aef8 +echo "### Testing systemd-repart --empty=create ###" + $repart $D/zzz --empty=create --size=1G --seed=$SEED sfdisk -d $D/zzz | grep -v -e 'sector-size' -e '^$' >$D/empty @@ -23,6 +25,8 @@ first-lba: 2048 last-lba: 2097118 EOF +echo "### Testing with root, root2, home, & swap ###" + cat >$D/definitions/root.conf <$D/definitions/swap.conf <$D/populated3 @@ -115,6 +123,8 @@ EOF dd if=/dev/urandom of=$D/block-copy bs=4096 count=10240 +echo "### Testing with root, root2, home, swap, another partition, & partition copy ###" + cat >$D/definitions/extra2.conf <