[parted-devel] [PATCH 1/2] tests: skip loop-clobber-infloop if mkswap cannot be found
Jim Meyering
jim at meyering.net
Tue Jun 29 06:26:22 UTC 2010
Otavio Salvador wrote:
> * tests/t0400-loop-clobber-infloop.sh: Skip the test is case of mkswap
> cannot be found.
> ---
> tests/t0400-loop-clobber-infloop.sh | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/tests/t0400-loop-clobber-infloop.sh b/tests/t0400-loop-clobber-infloop.sh
> index 10309ec..df99b7a 100644
> --- a/tests/t0400-loop-clobber-infloop.sh
> +++ b/tests/t0400-loop-clobber-infloop.sh
> @@ -24,6 +24,8 @@ fi
> : ${srcdir=.}
> . $srcdir/t-lib.sh
>
> +( mkswap -V ) >/dev/null 2>&1 || skip_test_ "no mkswap program"
ACK.
Thank you.
More information about the parted-devel
mailing list