Skip to content

Conversation

@Aganlengzi
Copy link
Contributor

@Aganlengzi Aganlengzi commented Apr 26, 2022

PR types

Others

PR changes

Others

Describe

Change import way of unpublished testsuite and white_list in op_test.py for using in outer repo: PaddlePaddle/PaddleCustomDevice#13

Related: #42227
目前CI中,UT写法不全是import paddle.xxx.yyy 的方式,解决方式为copy op_test.py到build下使用,见 #32515
已尝试编译时在py_test_modules中添加op_test.py的PATH,但会因部分UT从此PATH导入同名py(如utils)而错误;同时因为WIN32系统与LINUX系统差异可能引入其它问题,所以follow当前做法。

@Aganlengzi Aganlengzi changed the title test op_test test=allcases [CustomDevice]change import of unpublished file in op_test test=allcases Apr 27, 2022
@Aganlengzi Aganlengzi changed the title [CustomDevice]change import of unpublished file in op_test test=allcases [CustomDevice]change import way of unpublished file in op_test test=allcases Apr 27, 2022
Copy link
Collaborator

@tianshuo78520a tianshuo78520a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy脚本不太友好的方法,如果没有其他解决办法,可以按这种方法解决

@Aganlengzi Aganlengzi requested a review from qili93 April 28, 2022 01:04
Copy link
Contributor

@qili93 qili93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants