tests: use tar xf -, some tars default to tape dev.

FreeBSD's tar defaults to reading from /dev/sa0 when no -f option is
given, so turn "tar x" into "tar xf -" on j_corrupt_ext_jnl_sb_*.

Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debian
Matthias Andree 2016-06-06 00:54:11 -04:00 committed by Theodore Ts'o
parent 2832fd8b8f
commit 254c50ff5f
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ fi
cp /dev/null $OUT
bzip2 -dc < $test_dir/image.tar.bz2 | tar x
bzip2 -dc < $test_dir/image.tar.bz2 | tar xf -
test -d "$JOURNAL_DUMP_DIR" -a -w "$JOURNAL_DUMP_DIR" && cp $test_name.img "$JOURNAL_DUMP_DIR/$test_name.img"
test -d "$JOURNAL_DUMP_DIR" -a -w "$JOURNAL_DUMP_DIR" && cp $test_name.img.jnl "$JOURNAL_DUMP_DIR/$test_name.img.jnl"

View File

@ -9,7 +9,7 @@ fi
cp /dev/null $OUT
bzip2 -dc < $test_dir/image.tar.bz2 | tar x
bzip2 -dc < $test_dir/image.tar.bz2 | tar xf -
test -d "$JOURNAL_DUMP_DIR" -a -w "$JOURNAL_DUMP_DIR" && cp $test_name.img "$JOURNAL_DUMP_DIR/$test_name.img"
test -d "$JOURNAL_DUMP_DIR" -a -w "$JOURNAL_DUMP_DIR" && cp $test_name.img.jnl "$JOURNAL_DUMP_DIR/$test_name.img.jnl"