From 56d6ebd40468e2a743b39ad7d87b0675bdf9a042 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 5 Sep 2024 17:58:29 +0900 Subject: test: add test case for systemd-repart --seed=random For issue #34257. --- test/units/TEST-58-REPART.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'test') diff --git a/test/units/TEST-58-REPART.sh b/test/units/TEST-58-REPART.sh index b2a3be686c..6110dc4e52 100755 --- a/test/units/TEST-58-REPART.sh +++ b/test/units/TEST-58-REPART.sh @@ -1347,6 +1347,49 @@ EOF done } +testcase_random_seed() { + local defs imgs output + + # For issue #34257 + + defs="$(mktemp --directory "/tmp/test-repart.defs.XXXXXXXXXX")" + imgs="$(mktemp --directory "/var/tmp/test-repart.imgs.XXXXXXXXXX")" + # shellcheck disable=SC2064 + trap "rm -rf '$defs' '$imgs'" RETURN + chmod 0755 "$defs" + + tee "$defs/root.conf" <