Re: [PATCH] tests: correct PATH in new test, for when running manually

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

 



On 05/11/2010 09:45 AM, Jim Meyering wrote:
> I'd prepended a *file* to PATH, not the containing directory.
> The bug would have shown up only when running this test manually.
> 
> 
> -# If $abs_top_builddir/tools/virsh is not early in $PATH, put it there,
> +# If $abs_top_builddir/tools is not early in $PATH, put it there,
>  # so that we can safely invoke "virsh" simply with its name.
>  case $PATH in
> -  $abs_top_builddir/tools/src:$abs_top_builddir/tools/virsh:*) ;;
> -  $abs_top_builddir/tools/virsh:*) ;;
> -  *) PATH=$abs_top_builddir/tools/virsh:$PATH; export PATH ;;
> +  $abs_top_builddir/tools/src:$abs_top_builddir/tools:*) ;;
> +  $abs_top_builddir/tools:*) ;;
> +  *) PATH=$abs_top_builddir/tools:$PATH; export PATH ;;

ACK.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]