Skip to content

Commit

Permalink
fix operator test error msg mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
chenwhql committed Oct 22, 2021
1 parent fb224ab commit 252fb79
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions paddle/fluid/framework/operator_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,8 @@ TEST(IndicateVarDataTypeTest, lodtensor) {
std::string ex_msg = err.what();
EXPECT_TRUE(
ex_msg.find(
"The Tensor in the indicate_lod_tensor_data_type_test Op's "
"Input Variable LoDTensor(lodtensor_1) is not initialized") !=
std::string::npos);
"The indicate_lod_tensor_data_type_test Op's Input Variable "
"`LoDTensor` contains uninitialized Tensor.") != std::string::npos);
}
ASSERT_TRUE(caught);
}
Expand All @@ -466,9 +465,9 @@ TEST(IndicateVarDataTypeTest, selectedrows) {
caught = true;
std::string ex_msg = err.what();
EXPECT_TRUE(
ex_msg.find("The Tensor in the indicate_selected_rows_data_type_test "
"Op's Input Variable SelectedRows(selected_rows_1) is not "
"initialized") != std::string::npos);
ex_msg.find("The indicate_selected_rows_data_type_test Op's "
"Input Variable `SelectedRows` contains uninitialized "
"Tensor.") != std::string::npos);
}
ASSERT_TRUE(caught);
}
Expand Down

1 comment on commit 252fb79

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on 252fb79 Oct 22, 2021

Choose a reason for hiding this comment

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

🕵️ CI failures summary

🔍 PR: #34425 Commit ID: 252fb79 contains failed CI.

🔹 Failed: PR-CI-APPROVAL

approve_failed
2021-10-22 10:45:53 正在保存至: “bk.txt”
2021-10-22 10:45:53 0K 100% 2.38M=0s
2021-10-22 10:45:53 2021-10-22 10:45:53 (2.38 MB/s) - 已保存 “bk.txt” [5/5])
2021-10-22 10:46:00 ****************
2021-10-22 10:46:00 0. You must have one RD (lanxianghit (Recommend), phlrain or luotao1) approval for changing the FLAGS, which manages the environment variables.
2021-10-22 10:46:00 1. You must have Dianhai approval for change 20+ files or add than 1000+ lines of content.
2021-10-22 10:46:00 2. You must have one RD (XiaoguangHu01,chenwhql,zhiqiu,Xreki,luotao1) approval for paddle/fluid/framework/operator.h, which manages the underlying code for fluid.
2021-10-22 10:46:00 3. You must have one RD (zhiqiu (Recommend) , phlrain) approval for the changes of paddle/fluid/pybind/op_function_generator.cc, which manages the logic of automatic generating op functions for dygraph.
2021-10-22 10:46:00 4. You must have one RD (XiaoguangHu01,chenwhql,zhiqiu,Xreki,luotao1) approval for the usage of const_cast.
2021-10-22 10:46:00 5. You must have one RD (Avin0323(Recommend) or zhouwei25 or wanghuancoder or luotao1) approval for modifying unity_build_rule.cmake which the rules of Unity Build.
2021-10-22 10:46:00 There are 6 approved errors.
2021-10-22 10:46:00 ****************
2021-10-22 10:46:00 + EXCODE=6
2021-10-22 10:46:00 + echo 'EXCODE: 6'
2021-10-22 10:46:00 EXCODE: 6
2021-10-22 10:46:00 + echo 'ipipe_log_param_EXCODE: 6'
2021-10-22 10:46:00 ipipe_log_param_EXCODE: 6
2021-10-22 10:46:00 + exit 6

Please sign in to comment.