From: Ruediger Meier Date: Wed, 16 Mar 2016 00:40:44 +0000 (+0100) Subject: tests: fix fdisk/bsd for alpha X-Git-Tag: v2.28-rc2~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=72e948094bc5257b3f38b21d2ef8e575dedebcc2;p=thirdparty%2Futil-linux.git tests: fix fdisk/bsd for alpha There are special __alpha__ ifdefs in libfdisk/src/bsd.c Regarding 565964a9 and a80886e9. BTW it was a bad idea to use md5sum. In case of failure it would be much easier to debug hexdump diffs. Now it's nearly impossible to collect all these exotic hexdumps. CC: Andreas Henriksson Signed-off-by: Ruediger Meier --- diff --git a/tests/ts/fdisk/bsd b/tests/ts/fdisk/bsd index cd7a6c6f21..347c0d0784 100755 --- a/tests/ts/fdisk/bsd +++ b/tests/ts/fdisk/bsd @@ -51,7 +51,7 @@ function fdisk_bsd_offset_and_byte_order_clean local md5_bsdimg1_LE_0_64="2e1cee529cb59c9341afef0443f196a1" local md5_bsdimg2_LE_0_64="b5c121c2091b2ff26b880551feac7112" - if [ $BYTE_ORDER = "BE" ] ; then + if [ $BYTE_ORDER = "BE" ] ; then # BSD_LABELSECTOR = 0, BSD_LABELOFFSET = 64 sed -i \ -e "s/c2273b52976351db75596c47c10b0725/$md5_bsdimg1_LE_0_64/" \ @@ -69,6 +69,15 @@ function fdisk_bsd_offset_and_byte_order_clean -e "s/6d760d7a8ef33b27cc6e27f1e8807d48/$md5_bsdimg1_LE_0_64/" \ -e "s/3739c7959adb42693a69edb7a99914e8/$md5_bsdimg2_LE_0_64/" \ "$TS_OUTPUT" + + # special case for alpha + if grep -q "78a922a80361cb73049bced72e0f8f1d" $TS_OUTPUT; then + sed -i \ + -e "s/78a922a80361cb73049bced72e0f8f1d/$md5_bsdimg1_LE_0_64/" \ + -e "s/fc2803672a0643ffe46da325629616fc/$md5_bsdimg2_LE_0_64/" \ + -e 's/\(3 *Version 7 *8 *\)ext2 /\1MS-DOS/' \ + "$TS_OUTPUT" + fi fi }