summaryrefslogtreecommitdiff
path: root/tests/run_e2fsck
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-07-09 12:08:10 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-07-09 12:08:10 -0400
commitb4db1e4c7461a50e18c9fd135b9f1ba6f27e4390 (patch)
tree81789569aecb98c46a1e815461f946245c835241 /tests/run_e2fsck
parent0bd0e5932046401049502ee99529b984d7cd316e (diff)
downloade2fsprogs-b4db1e4c7461a50e18c9fd135b9f1ba6f27e4390.tar.gz
tests: use /tmp for scratch files
The /tmp directory is often a memory based file system, and using this can speed up running the regression test suite. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'tests/run_e2fsck')
-rw-r--r--tests/run_e2fsck6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/run_e2fsck b/tests/run_e2fsck
index 9b4f170d..9202e121 100644
--- a/tests/run_e2fsck
+++ b/tests/run_e2fsck
@@ -50,14 +50,16 @@ eval $PREP_CMD
$FSCK $FSCK_OPT -N test_filesys $TMPFILE > $OUT1.new 2>&1
status=$?
echo Exit status is $status >> $OUT1.new
-sed -e '1d' $OUT1.new | sed -e '/^JFS DEBUG:/d' | tr -d \\015 >> $OUT1
+sed -e '1d' $OUT1.new | sed -e '/^JFS DEBUG:/d' | \
+ sed -e "s;$TMPFILE;test.img;" | tr -d \\015 >> $OUT1
rm -f $OUT1.new
if [ "$ONE_PASS_ONLY" != "true" ]; then
$FSCK $SECOND_FSCK_OPT -N test_filesys $TMPFILE > $OUT2.new 2>&1
status=$?
echo Exit status is $status >> $OUT2.new
- sed -e '1d' $OUT2.new | sed -e '/^JFS DEBUG:/d' > $OUT2
+ sed -e '1d' $OUT2.new | sed -e '/^JFS DEBUG:/d' | \
+ sed -e "s;$TMPFILE;test.img;" > $OUT2
rm -f $OUT2.new
fi