Whamcloud - gitweb
tests: don't run sed multiple times on test output
authorAndreas Dilger <adilger@dilger.ca>
Wed, 2 May 2018 04:26:03 +0000 (22:26 -0600)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 22 Jun 2018 21:59:35 +0000 (17:59 -0400)
commitc5d9d3ce5f564c055087bd69dbf71e64d9fe4461
tree9b04670725948de78afa5498877caecf93569cad
parentb7454eb8ee781a7a581b61007e2ca892f72e1a6f
tests: don't run sed multiple times on test output

Don't call sed multiple times on the output, and avoid the use
of temporary files, or if possible.  It would be convenient to
use "sed -i" to only update the output file once, but this is
not portable to all platforms.

[ Fixed a few test regression failures --tytso ]

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
117 files changed:
tests/d_dumpe2fs_group_only/script
tests/d_fallocate/script
tests/d_fallocate_bigalloc/script
tests/d_fallocate_blkmap/script
tests/d_loaddump/script
tests/d_punch/script
tests/d_punch_bigalloc/script
tests/d_special_files/script
tests/d_xattr_edits/script
tests/d_xattr_sorting/script
tests/f_badcluster/script
tests/f_boundscheck/script
tests/f_collapse_extent_tree/script
tests/f_compress_extent_tree_level/script
tests/f_convert_bmap/script
tests/f_convert_bmap_and_extent/script
tests/f_convert_bmap_sparse/script
tests/f_create_symlinks/script
tests/f_detect_junk/script
tests/f_detect_xfs/script
tests/f_extent_too_deep/script
tests/f_itable_collision/script
tests/f_large_dir/script
tests/f_no/script
tests/f_opt_extent/script
tests/f_opt_extent_ext3/script
tests/f_readonly_fsck/script
tests/f_resize_inode/script
tests/f_super_bad_csum/script
tests/f_uninit_cat/script
tests/f_yes/script
tests/f_yesall/script
tests/f_yesthenall/script
tests/f_yesthenno/script
tests/i_bad_csum/script
tests/j_corrupt_commit_csum/script
tests/j_corrupt_commit_tid/script
tests/j_corrupt_descr_csum/script
tests/j_corrupt_descr_tid/script
tests/j_corrupt_ext_jnl_sb_block/script
tests/j_corrupt_ext_jnl_sb_csum/script
tests/j_corrupt_journal_block/script
tests/j_corrupt_revoke_block/script
tests/j_corrupt_revoke_csum/script
tests/j_corrupt_sb_csum/script
tests/j_corrupt_sb_magic/script
tests/j_ext_dumpe2fs/script
tests/j_ext_long_revoke_trans/script
tests/j_ext_long_trans/script
tests/j_long_revoke_trans/script
tests/j_long_revoke_trans_mcsum_32bit/script
tests/j_long_revoke_trans_mcsum_64bit/script
tests/j_long_trans/script
tests/j_long_trans_mcsum_32bit/script
tests/j_long_trans_mcsum_64bit/script
tests/j_recover_csum2_32bit/script
tests/j_recover_csum2_64bit/script
tests/j_recover_csum3_64bit/script
tests/j_short_revoke_trans/script
tests/j_short_revoke_trans_mcsum_64bit/script
tests/j_short_trans/script
tests/j_short_trans_64bit/script
tests/j_short_trans_mcsum_64bit/script
tests/j_short_trans_old_csum/script
tests/j_short_trans_open_recover/script
tests/j_short_trans_recover/script
tests/j_short_trans_recover_mcsum_64bit/script
tests/j_short_uncommitted_trans/script
tests/j_short_uncommitted_trans_mcsum_64bit/script
tests/m_devdir/script
tests/m_error_behavior/script
tests/m_hugefile/script
tests/m_hugefile_slack/script
tests/m_mcsum_extjournal/script
tests/m_minrootdir/script
tests/m_mkfs_overhead/script
tests/m_rootdir/script
tests/r_1024_small_bg/script
tests/r_32to64bit/script
tests/r_32to64bit_expand_full/script
tests/r_32to64bit_meta/script
tests/r_32to64bit_move_itable/script
tests/r_64bit_big_expand/script
tests/r_64to32bit/script
tests/r_64to32bit_meta/script
tests/r_bigalloc_big_expand/script
tests/r_expand_full/script
tests/r_ext4_big_expand/script
tests/r_ext4_small_bg/script
tests/r_fixup_lastbg/script
tests/r_fixup_lastbg_big/script
tests/r_inline_xattr/script
tests/r_meta_bg_shrink/script
tests/r_min_itable/script
tests/r_move_itable/script
tests/r_move_itable_nostride/script
tests/r_move_itable_realloc/script
tests/r_resize_inode/script
tests/run_e2fsck
tests/t_change_uuid/script
tests/t_change_uuid_mcsum/script
tests/t_change_uuid_mcsum_mounted/script
tests/t_change_uuid_mcsum_seed_mounted/script
tests/t_change_uuid_mounted/script
tests/t_disable_changed_csum_seed/script
tests/t_disable_changed_csum_seed_mounted/script
tests/t_disable_csum_seed/script
tests/t_disable_mcsum_noinitbg/script
tests/t_disable_mcsum_yesinitbg/script
tests/t_disable_meta_csum_and_seed/script
tests/t_enable_csum_seed/script
tests/t_ext_jnl_fail/script
tests/t_format_csum_seed/script
tests/t_iexpand_full/script
tests/t_iexpand_mcsum/script
tests/t_replay_and_set/script
tests/t_uninit_bg_rm/script