]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: refactor dump test argument parsing
authorBill Kendall <wkendall@sgi.com>
Tue, 1 Nov 2011 19:53:07 +0000 (14:53 -0500)
committerChristoph Hellwig <hch@lst.de>
Thu, 3 Nov 2011 10:16:13 +0000 (10:16 +0000)
commit868a3862a86d83365dbfcbdce82db047967827a9
tree0370b51aec991f218d8baf5d6fdebe866afd069a
parente74bcb424054fe1131a202ab55f8ce97e89a2080
xfstests: refactor dump test argument parsing

The dump and restore helper functions all call the same _parse_args()
function. xfsdump and xfsrestore have some common options, but others
have different meanings/syntaxes or only exist in one program or the
other. Split _parse_args() into dump and restore variants.

Further, a test cannot pass most options to xfsrestore because many of
the parsed args are not used by the restore helper functions.  Change
the helpers so that the parsed options are available (to be used in
future tests).

Also add a check for a missing --multi argument, and change a couple of
callers to be consistent and use $* instead of "$@".

Signed-off-by: Bill Kendall <wkendall@sgi.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
common.dump