]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
tests: use tar xf -, some tars default to tape dev.
authorMatthias Andree <matthias.andree@gmx.de>
Mon, 6 Jun 2016 04:54:11 +0000 (00:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 6 Jun 2016 04:54:11 +0000 (00:54 -0400)
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>
tests/j_corrupt_ext_jnl_sb_block/script
tests/j_corrupt_ext_jnl_sb_csum/script

index 02b8e65071dba6b547bcef7efc227ede908f639c..11d3001b4b9068baa1df8b9e0379c23f7c65af7c 100644 (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"
 
index 7a110bfac4faa3b38440a0dd0b56bd032569b307..45ddf6f4ff1fdd28edd24079eff951eaa1b72dc0 100644 (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"