diff options
author | Ruediger Meier | 2016-03-02 12:59:55 +0100 |
---|---|---|
committer | Ruediger Meier | 2016-03-03 02:15:32 +0100 |
commit | 730f79fc3ddfeba44051032efe3349a77fc13ef0 (patch) | |
tree | b0684e0ad86e6619b3cc36d7978d9ac8904d2cfb /tests/ts/minix | |
parent | blkdiscard: add --zeroout (BLKZEROOUT ioctl) (diff) | |
download | kernel-qcow2-util-linux-730f79fc3ddfeba44051032efe3349a77fc13ef0.tar.gz kernel-qcow2-util-linux-730f79fc3ddfeba44051032efe3349a77fc13ef0.tar.xz kernel-qcow2-util-linux-730f79fc3ddfeba44051032efe3349a77fc13ef0.zip |
tests: minix, use hexdump instead of md5sum
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/minix')
-rwxr-xr-x | tests/ts/minix/fsck-images | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ts/minix/fsck-images b/tests/ts/minix/fsck-images index cb0a9e3fd..22486028b 100755 --- a/tests/ts/minix/fsck-images +++ b/tests/ts/minix/fsck-images @@ -23,6 +23,7 @@ ts_skip_nonroot ts_check_test_command "$TS_CMD_FSCKMINIX" ts_check_test_command "$TS_HELPER_MKFS_MINIX" +ts_check_test_command "$TS_CMD_HEXDUMP" export MKFS_MINIX_TEST_SECOND_SINCE_EPOCH='1438460212' @@ -34,7 +35,7 @@ check_minix_fs_type() { echo "mkfs return value: $?" >> $TS_OUTPUT $TS_CMD_FSCKMINIX $img >> $TS_OUTPUT 2>&1 echo "fsck return value: $?" >> $TS_OUTPUT - md5sum $img | awk '{print $1}' >> $TS_OUTPUT 2>&1 + $TS_CMD_HEXDUMP -C $img >> $TS_OUTPUT 2>&1 rm -f $img ts_finalize_subtest } @@ -51,7 +52,7 @@ cp "$TS_SELF/broken-root" $img "$TS_CMD_FSCKMINIX" -sav $img | sed 's/Filesystem on .* is dirty/Filesystem auto-fix is dirty/' > $TS_OUTPUT 2>&1 echo $? >> $TS_OUTPUT -md5sum $img | sed 's/ .*auto-fix/ auto-fix/' >> $TS_OUTPUT +$TS_CMD_HEXDUMP -C $img >> $TS_OUTPUT 2>&1 ts_finalize_subtest ts_init_subtest "bug.773892" |