]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: fix partition check in TEST-58-REPART
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 7 May 2021 15:42:14 +0000 (17:42 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 7 May 2021 19:17:22 +0000 (21:17 +0200)
Follow-up to 1c41c1dc346dd0d5d235fe0866bbe2d9be924dcd.

test/units/testsuite-58.sh

index 13f02f01e3212dd9778b979f95de24615b37928f..ae177ac4286d728f9649b40cdbaf63100dbbfa57 100755 (executable)
@@ -44,10 +44,10 @@ systemd-repart --definitions=/tmp/testsuite-58-defs/ \
                --seed=750b6cd5c4ae4012a15e7be3c29e6a47 \
                /var/tmp/testsuite-58.img
 
-sfdisk --dump /var/tmp/testsuite-58.img >/tmp/testsuite-58.dump
+sfdisk --dump /var/tmp/testsuite-58.img | tee /tmp/testsuite-58.dump
 
 grep -qxF '/var/tmp/testsuite-58.img1 : start=        2048, size=       20480, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=39107B09-615D-48FB-BA37-C663885FCE67, name="esp"' /tmp/testsuite-58.dump
-grep -qxF '/var/tmp/testsuite-58.img2 : start=       22528, size=       20480, type=4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709, uuid=60F33797-1D71-4DCB-AA6F-20564F036CD0, name="root-x86-64"' /tmp/testsuite-58.dump
+grep -qxF '/var/tmp/testsuite-58.img2 : start=       22528, size=       20480, type=4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709, uuid=60F33797-1D71-4DCB-AA6F-20564F036CD0, name="root-x86-64", attrs="GUID:59"' /tmp/testsuite-58.dump
 grep -qxF '/var/tmp/testsuite-58.img3 : start=       43008, size=       20480, type=8484680C-9521-48C6-9C11-B0720656F69E, uuid=7E3369DD-D653-4513-ADF5-B993A9F20C16, name="usr-x86-64", attrs="GUID:60"' /tmp/testsuite-58.dump
 
 # Second part, duplicate it with CopyBlocks=auto