On 01/23/2014 01:48 PM, Mark Wu wrote:
On 01/23/2014 11:29 AM, shaohef(a)linux.vnet.ibm.com wrote:
> From: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
>
> $ sudo ./run_tests.sh test_rest
> Failed to import plugin plugins.sample.Drawings
>
> That's because plugin is not in src/
>
> Signed-off-by: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
> ---
> tests/run_tests.sh.in | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/run_tests.sh.in b/tests/run_tests.sh.in
> index 2baf66d..038e8fa 100644
> --- a/tests/run_tests.sh.in
> +++ b/tests/run_tests.sh.in
> @@ -31,7 +31,7 @@ else
> fi
>
> if [ "$HAVE_UNITTEST" != "yes" -o "$PYTHON_VER" ==
"2.6" ]; then
> - PYTHONPATH=../src:./ unit2 $ARGS
> + PYTHONPATH=../src:./:../ unit2 $ARGS
> else
> - PYTHONPATH=../src python -m unittest $ARGS
> + PYTHONPATH=../src:../ python -m unittest $ARGS
> fi
We don't put any test cases for plugins in test_rest. Instead, we put
them in test_plugin. the python path
has been mangled there.
Yes. I just want to avoid the error message.
Actually, this is a know issue.
Zheng Sheng, Aline and I know this issue.
Do you means we need other hack to avoid to print this error message?
--
Thanks and best regards!
Sheldon Feng(冯少合)<shaohef(a)linux.vnet.ibm.com>
IBM Linux Technology Center