[Kimchi-devel] [PATCH] Fix PYTHONPATH to be able to run "make check"

Paulo Ricardo Paz Vital pvital at linux.vnet.ibm.com
Wed Sep 30 18:25:21 UTC 2015


Reviewed-By: Paulo Vital <pvital at linux.vnet.ibm.com>

On Wed, 2015-09-30 at 15:03 -0300, Aline Manera wrote:
> The PYTHONPATH must point to wok and plugins directories in order to
> run
> the tests properly.
> Fix it.
> 
> There are a lot of tests failing that will be fixed in a next patch
> set.
> 
> Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
> ---
>  src/wok/plugins/kimchi/tests/run_tests.sh.in | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/src/wok/plugins/kimchi/tests/run_tests.sh.in
> b/src/wok/plugins/kimchi/tests/run_tests.sh.in
> index beef75e..0e848c8 100644
> --- a/src/wok/plugins/kimchi/tests/run_tests.sh.in
> +++ b/src/wok/plugins/kimchi/tests/run_tests.sh.in
> @@ -52,4 +52,6 @@ for ((i=0;i<${#LIST[@]};i++)); do
>      fi
>  done
> 
> -PYTHONPATH=../plugins:../src:../ $CMD $OPTS ${MODEL_LIST[@]}
> ${MOCK_LIST[@]}
> +# ../../../../ refers to wok directory
> +# ../../../ refers to plugins directory
> +PYTHONPATH=../../../../:../../../ $CMD $OPTS ${MODEL_LIST[@]}
> ${MOCK_LIST[@]}




More information about the Kimchi-devel mailing list