[U-Boot] [PATCH 1/3] test/fs: Restructure file path specification to allow some flexibility
Stephen Warren
swarren at wwwdotorg.org
Mon Sep 12 20:33:50 CEST 2016
On 09/11/2016 02:46 PM, Stefan Brüns wrote:
> Instead of providing the full path, specify directory and filename
> separately. This allows to specify intermediate directories, required
> for some additional tests.
> diff --git a/test/fs/fs-test.sh b/test/fs/fs-test.sh
> @@ -166,11 +150,14 @@ function test_image() {
>
> case "$2" in
> fat)
> + FPATH=""
> PREFIX="fat"
> WRITE="write"
> ;;
>
> ext4)
> + # ext4 needs absolute path
> + FPATH="/"
> PREFIX="ext4"
> WRITE="write"
...
> - FILE_BIG=$6/$4
> + if [ ! -z "$6" ]; then
> + FPATH=${6}/${FPATH}
> fi
That adds a double slash in the case of ext4. That probably gets parsed
OK, but it'd be nicer not to do the join with only a single /.
More information about the U-Boot
mailing list