~daniel-mehrmann/e2fsprogs/master

« back to all changes in this revision

Viewing changes to tests/t_ext_jnl_rm/script

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2012-06-14 13:01:21 UTC
  • mfrom: (8.4.18 sid)
  • Revision ID: package-import@ubuntu.com-20120614130121-t2gct0d09jepx0y6
Tags: 1.42.4-3ubuntu1
* Merge from Debian unstable (LP: #978012), remainging changes:
  - debian/control.in: 
      Build-depend on gettext:any instead of on gettext for (cross-building)
      Drop build dependency on dc, which hasn't been needed for some time.
      Update maintainer field.
  - debian/rules:
      Block pkg-create-dbgsym from operating on this package.
      Build without dietlibc-dev, which is in universe 
  - debian/control:
      Regenerate with ./debian/rules debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
printf "remove missing external journal device: "
 
1
test_description="remove missing external journal device"
2
2
OUT=$test_name.log
3
3
 
4
4
dd if=/dev/zero of=$TMPFILE bs=1k count=512 > /dev/null 2>&1
17
17
$TUNE2FS -f -O ^has_journal $TMPFILE >> $OUT 2>&1
18
18
$DUMPE2FS -h $TMPFILE >> $OUT 2>&1
19
19
if [ "$(grep 'Journal UUID:' $OUT)" ]; then
20
 
        rm -f $test_name.ok
21
20
        mv $test_name.log $test_name.failed
22
 
        echo "failed"
 
21
        echo "$test_name: $test_description: failed"
23
22
else
24
 
        echo "ok"
 
23
        echo "$test_name: $test_description: ok"
25
24
        mv $test_name.log $test_name.ok
26
 
        rm -f $test_name.failed
27
25
fi
28
26
rm -f $TMPFILE