xfs/298: cd to / instead of ~
authorOmar Sandoval <osandov@fb.com>
Wed, 16 Nov 2016 00:34:01 +0000 (16:34 -0800)
committerEryu Guan <eguan@redhat.com>
Fri, 18 Nov 2016 08:40:45 +0000 (16:40 +0800)
In our kernel testing infrastructure, "$HOME" isn't defined.
Everywhere else in xfstests does `cd /` instead, so let's just do
that.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/298

index 770252670b9fdb6087dbadfbd3b12118c7c59a29..26fb5c86e2f46d900380f349680762ce95d07162 100755 (executable)
@@ -80,7 +80,7 @@ while [ $SIZE -lt 1024 ];do
 # remove the symlink - make sure ifree removes the remote symlink.
        rm $SYMLINK_FILE
 # umount and check the number of extents on the inode. Should be 0.
-       cd
+       cd /
        _scratch_unmount >/dev/null 2>&1
        _scratch_xfs_db  -c "inode $inode" -c "p core.nextents"