common: Improve _link_output_file to be more versatile
authorJan Kara <jack@suse.com>
Mon, 21 Dec 2015 06:08:22 +0000 (17:08 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Dec 2015 06:08:22 +0000 (17:08 +1100)
commit254360fd9a465eea84754c84758ce8336d11e763
tree791257afb67ee38449d4fad00f01bbe5cf1fe125
parent9420351d427114d0b2173bd5880e3ac297af4f07
common: Improve _link_output_file to be more versatile

Currently _link_output_file() selects output file suffix based on the
current operating system. Make it more versatile by allowing selection
of output file suffix based on any feature string. The idea is that
in config file ($seq.cfg) there are several lines like:

feat1,feat2: suffix

The function is passed a feature string (or uses os_name,MOUNT_OPTIONS
if no argument is passed) and selects output file with a suffix for
which all features are present in the feature string. If there is no
matching line, output with 'default' suffix is selected.

Update all tests using _link_out_file to the new calling convention.

Signed-off-by: Jan Kara <jack@suse.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
30 files changed:
common/rc
tests/generic/088
tests/generic/088.cfg [new file with mode: 0644]
tests/xfs/018
tests/xfs/018.cfg [new file with mode: 0644]
tests/xfs/022
tests/xfs/022.cfg [new file with mode: 0644]
tests/xfs/023
tests/xfs/023.cfg [new file with mode: 0644]
tests/xfs/030
tests/xfs/030.cfg [new file with mode: 0644]
tests/xfs/031
tests/xfs/031.cfg [new file with mode: 0644]
tests/xfs/033
tests/xfs/033.cfg [new file with mode: 0644]
tests/xfs/033.crc.out.linux [deleted file]
tests/xfs/033.out.crc.linux [new file with mode: 0644]
tests/xfs/035
tests/xfs/035.cfg [new file with mode: 0644]
tests/xfs/036
tests/xfs/036.cfg [new file with mode: 0644]
tests/xfs/039
tests/xfs/039.cfg [new file with mode: 0644]
tests/xfs/043
tests/xfs/043.cfg [new file with mode: 0644]
tests/xfs/055
tests/xfs/082
tests/xfs/082.cfg [new file with mode: 0644]
tests/xfs/146
tests/xfs/146.cfg [new file with mode: 0644]