Re: [PATCH] xfs/298: cd to / instead of ~

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



On Tue, Nov 15, 2016 at 04:34:01PM -0800, Omar Sandoval wrote:
> From: Omar Sandoval <osandov@xxxxxx>
> 
> 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@xxxxxx>
> ---
>  tests/xfs/298 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/xfs/298 b/tests/xfs/298
> index 7702526..26fb5c8 100755
> --- a/tests/xfs/298
> +++ b/tests/xfs/298
> @@ -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 /

How about do this:
  while
    ...
    pushd $SCRATCH_MNT >/dev/null
    ...
    ...
    popd >/dev/null
    ...
  done

Thanks,
Zorro

>  	_scratch_unmount >/dev/null 2>&1
>  	_scratch_xfs_db  -c "inode $inode" -c "p core.nextents"
>  
> -- 
> 2.10.2
> 
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux