From 2d317f117b54f6734a45749e87b31ec4ab175288 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Mon, 19 May 2014 12:57:59 +0200 Subject: fsck.cramfs: refactor option -x/--extract We want to clean it up to compile it later per default (not only if defined INCLUDE_FS_TESTS). - Rename option --destination to --extract. - DIR argument is now optional because we want to keep the use case "test uncompression without writing files" ... but we don't want it always. - Remove shortopt -x because shortopts with optional args are evil. Changing the cmd interface is no compatibility issue here because all affected options errored out per default in past. Signed-off-by: Ruediger Meier --- tests/ts/cramfs/fsck-endianness | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/ts') diff --git a/tests/ts/cramfs/fsck-endianness b/tests/ts/cramfs/fsck-endianness index 0ebe54470..87addef76 100755 --- a/tests/ts/cramfs/fsck-endianness +++ b/tests/ts/cramfs/fsck-endianness @@ -28,9 +28,6 @@ ts_skip_nonroot set -o pipefail -($TS_CMD_FSCKCRAMFS -x TEST_X_FLAG 2>&1 || true) \ - | grep -q "compiled without -x support" && ts_skip "fsck: compiled without -x support" - IMAGE_LITTLE="$TS_SELF/cramfs-little.img" #Known good little endian image IMAGE_BIG="$TS_SELF/cramfs-big.img" #Known good big endian image @@ -44,7 +41,7 @@ test_image() { rm -rf "$IMAGE_DATA" ts_log "extract from $FROM_ENDIANNESS endian" - $TS_CMD_FSCKCRAMFS -v -b 4096 -x $IMAGE_DATA $FROM_IMAGE | head -n1 | cut -d" " -f4 2>&1 >> $TS_OUTPUT + $TS_CMD_FSCKCRAMFS -v -b 4096 --extract=$IMAGE_DATA $FROM_IMAGE | head -n1 | cut -d" " -f4 2>&1 >> $TS_OUTPUT ts_log "create $TO_ENDIANNESS endian" $TS_CMD_MKCRAMFS -N "$TO_ENDIANNESS" -b 4096 "$IMAGE_DATA" \ -- cgit v1.2.3-55-g7522