[Piglit] [PATCH] piglit: Don't override user's definition of the PIGLIT_SOURCE_DIR env variable v2

Dylan Baker baker.dylan.c at gmail.com
Fri May 9 14:33:52 PDT 2014


On Friday, May 09, 2014 17:29:38 Tom Stellard wrote:
> ---
>  piglit | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/piglit b/piglit
> index af8dfb1..dcb51db 100755
> --- a/piglit
> +++ b/piglit
> @@ -42,7 +42,8 @@ if not path.exists('HACKING'):
>      _binpath, _bin = path.split(__file__)
>      _libdir = path.abspath(path.join(_binpath, '..', 'lib', _bin))
>      sys.path.append(_libdir)
> -    os.environ['PIGLIT_SOURCE_DIR'] = _libdir
> +    if 'PIGLIT_SOURCE_DIR' not in os.environ:
> +        os.environ['PIGLIT_SOURCE_DIR'] = _libdir
>  
>  import framework.programs.run as run
>  import framework.programs.summary as summary
> 

reviewed-by: Dylan Baker <baker.dylan.c at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20140509/d830c008/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20140509/d830c008/attachment.sig>


More information about the Piglit mailing list