[parted-devel] [PATCH] When labeling a disk in --script mode, fail if it is in use.

Otavio Salvador otavio at debian.org
Fri May 11 13:02:33 UTC 2007


Jim Meyering <jim at meyering.net> writes:

<...>
> +++ b/tests/t1100-busy-label.sh
<...>
> +# There's a race condition here: on udev-based systems, ${dev}1

This comment isn't clear enough. I misunderstand it as a typo at first
look. I think you can rephrase it to say that the device (e.g:
/dev/sda1) can take some time to be created or such...

<...>
> +++ b/tests/test-lib.sh
<...>
> -# If $srcdir is not set, set it, if it's ".".  Otherwise, fail.
> -if test -a "$srcdir"; then
> -    if test -f test-lib.sh; then
> -	srcdir=.
> -    else
> -	error '$srcdir is not set; either set it, or run the test' \
> -	    'from the source directory'
> -    fi
> -fi
> -

This hook doesn't look to be related but a small refactoring. I'd
suggest you to group this and the previous commit (the one for
init.sh) that isn't related there and make a single commit doing it.

You might together change together t0000-basic.sh to use the new way
of creating the input that. The line I found that needs it is:

test_expect_success 'create interactive input' 'printf "y\n\n" > in'

Good work :-D

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



More information about the parted-devel mailing list